CustomAttribute 结构

定义

public value class CustomAttribute
public struct CustomAttribute
type CustomAttribute = struct
Public Structure CustomAttribute
继承
CustomAttribute

属性

Constructor

获取自定义属性类型的构造函数(MethodDefinitionHandleMemberReferenceHandle)。Gets the constructor (the MethodDefinitionHandle or MemberReferenceHandle) of the custom attribute type.

Parent

获取应用了特性的元数据实体的句柄。Gets the handle of the metadata entity the attribute is applied to.

Value

获取属性的值。Gets the value of the attribute.

方法

DecodeValue<TType>(ICustomAttributeTypeProvider<TType>)

对以值 blob 形式编码的参数进行解码。Decodes the arguments encoded in the value blob.

适用于