CodedIndex.CustomAttributeType(EntityHandle) 方法
定义
为指定的句柄计算 CustomAttributeType 编码索引。Calculates a CustomAttributeType coded index for the specified handle.
public:
static int CustomAttributeType(System::Reflection::Metadata::EntityHandle handle);
public static int CustomAttributeType (System.Reflection.Metadata.EntityHandle handle);
static member CustomAttributeType : System.Reflection.Metadata.EntityHandle -> int
Public Shared Function CustomAttributeType (handle As EntityHandle) As Integer
参数
- handle
- EntityHandle
MethodDefinitionHandle 或 MemberReferenceHandleMethodDefinitionHandle or MemberReferenceHandle
返回
例外
句柄类型不是预期类型。The handle type is unexpected.