Table of Contents

Class SecurityAttribute

Namespace
AsmResolver.DotNet.Signatures
Assembly
AsmResolver.DotNet.dll

Represents a single instance of a security attribute.

public class SecurityAttribute
Inheritance
SecurityAttribute
Inherited Members

Constructors

SecurityAttribute(TypeSignature)

Creates a new security attribute with the provided type.

public SecurityAttribute(TypeSignature type)

Parameters

type TypeSignature

The security attribute type.

Properties

AttributeType

Gets or sets the security attribute type that is used.

public TypeSignature AttributeType { get; set; }

Property Value

TypeSignature

NamedArguments

Gets the list of named arguments used for instantiating the attribute.

public IList<CustomAttributeNamedArgument> NamedArguments { get; }

Property Value

IList<CustomAttributeNamedArgument>

Methods

FromReader(in BlobReaderContext, ref BinaryStreamReader)

Reads a single security attribute from the provided input blob stream.

public static SecurityAttribute FromReader(in BlobReaderContext context, ref BinaryStreamReader reader)

Parameters

context BlobReaderContext

The blob reader context.

reader BinaryStreamReader

The input blob stream.

Returns

SecurityAttribute

The security attribute.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Write(BlobSerializationContext)

Writes the security attribute to the provided output stream.

public void Write(BlobSerializationContext context)

Parameters

context BlobSerializationContext