CodedIndex.HasCustomAttribute(EntityHandle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
計算指定句柄的 HasCustomAttribute 編碼索引。
public:
static int HasCustomAttribute(System::Reflection::Metadata::EntityHandle handle);
public static int HasCustomAttribute(System.Reflection.Metadata.EntityHandle handle);
static member HasCustomAttribute : System.Reflection.Metadata.EntityHandle -> int
Public Shared Function HasCustomAttribute (handle As EntityHandle) As Integer
參數
- handle
- EntityHandle
MethodDefinitionHandle, FieldDefinitionHandle, , ManifestResourceHandleEventDefinitionHandleStandaloneSignatureHandlePropertyDefinitionHandleDeclarativeSecurityAttributeHandleModuleReferenceHandleAssemblyFileHandleAssemblyReferenceHandleExportedTypeHandleAssemblyDefinitionHandleGenericParameterHandleGenericParameterConstraintHandleTypeDefinitionHandleInterfaceImplementationHandleMethodSpecificationHandleParameterHandleMemberReferenceHandleModuleDefinitionHandleTypeSpecificationHandleTypeReferenceHandle
傳回
例外狀況
這種把柄類型出乎意料。