CodedIndex.HasCustomAttribute(EntityHandle) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Calcola un indice codificato HasCustomAttribute per l'handle specificato.
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
Parametri
- handle
- EntityHandle
MethodDefinitionHandle, FieldDefinitionHandle, TypeDefinitionHandle, ParameterHandle, InterfaceImplementationHandleAssemblyReferenceHandleEventDefinitionHandleModuleDefinitionHandleStandaloneSignatureHandleMemberReferenceHandleModuleReferenceHandleDeclarativeSecurityAttributeHandleTypeSpecificationHandleGenericParameterHandleAssemblyFileHandlePropertyDefinitionHandleExportedTypeHandleAssemblyDefinitionHandleManifestResourceHandleo . GenericParameterConstraintHandleMethodSpecificationHandleTypeReferenceHandle
Valori restituiti
Eccezioni
Il tipo di handle è imprevisto.