SignatureHeader 结构

定义

表示由签名 Blob 的前导字节指定的签名特征。Represents the signature characteristics specified by the leading byte of signature blobs.

public value class SignatureHeader : IEquatable<System::Reflection::Metadata::SignatureHeader>
public struct SignatureHeader : IEquatable<System.Reflection.Metadata.SignatureHeader>
type SignatureHeader = struct
Public Structure SignatureHeader
Implements IEquatable(Of SignatureHeader)
继承
SignatureHeader
实现

注解

此标头字节存在于所有方法定义、方法引用、独立方法、字段、属性和局部变量签名中,但不存在于类型规范签名中。This header byte is present in all method definition, method reference, standalone method, field, property, and local variable signatures, but not in type specification signatures.

构造函数

SignatureHeader(Byte)

使用指定的字节值初始化 SignatureHeader 结构的新实例。Initializes a new instance of the SignatureHeader structure using the specified byte value.

SignatureHeader(SignatureKind, SignatureCallingConvention, SignatureAttributes)

使用指定的签名种类、调用约定和签名特性初始化 SignatureHeader 结构的新实例。Initializes a new instance of the SignatureHeader structure using the specified signature kind, calling convention and signature attributes.

字段

CallingConventionOrKindMask

获取调用约定或签名种类的掩码值。Gets the mask value for the calling convention or signature kind. 默认的 CallingConventionOrKindMask 值为 15 (0x0F)。The default CallingConventionOrKindMask value is 15 (0x0F).

属性

Attributes

获取签名特性。Gets the signature attributes.

CallingConvention

获取调用约定。Gets the calling convention.

HasExplicitThis

获取一个值,该值指示此 SignatureHeader 结构是否具有 ExplicitThis 签名特性。Gets a value that indicates whether this SignatureHeader structure has the ExplicitThis signature attribute.

IsGeneric

获取一个值,该值指示此 SignatureHeader 结构是否具有 Generic 签名特性。Gets a value that indicates whether this SignatureHeader structure has the Generic signature attribute.

IsInstance

获取一个值,该值指示此 SignatureHeader 结构是否具有 Instance 签名特性。Gets a value that indicates whether this SignatureHeader structure has the Instance signature attribute.

Kind

获取签名种类。Gets the signature kind.

RawValue

获取标头字节的原始值。Gets the raw value of the header byte.

方法

Equals(Object)

将指定的对象与此 SignatureHeader 进行比较,判断二者之间的相等性。Compares the specified object with this SignatureHeader for equality.

Equals(SignatureHeader)

比较两个 SignatureHeader 值以判断是否相等。Compares two SignatureHeader values for equality.

GetHashCode()

获取当前对象的哈希代码。Gets a hash code for the current object.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

运算符

Equality(SignatureHeader, SignatureHeader)

比较两个 SignatureHeader 值以判断是否相等。Compares two SignatureHeader values for equality.

Inequality(SignatureHeader, SignatureHeader)

确定两个 SignatureHeader 值是否不相等。Determines whether two SignatureHeader values are unequal.

适用于