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

参数

返回

Int32

例外

句柄类型不是预期类型。The handle type is unexpected.

适用于