CodedIndex.HasCustomAttribute(EntityHandle) Metoda
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Oblicza indeks zakodowany hasCustomAttribute dla określonego uchwytu.
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
Parametry
- handle
- EntityHandle
MethodDefinitionHandle FieldDefinitionHandle, TypeReferenceHandle, ExportedTypeHandleTypeDefinitionHandleParameterHandleInterfaceImplementationHandleStandaloneSignatureHandleEventDefinitionHandleModuleReferenceHandlePropertyDefinitionHandleTypeSpecificationHandleDeclarativeSecurityAttributeHandleAssemblyDefinitionHandleAssemblyReferenceHandleModuleDefinitionHandleMemberReferenceHandleManifestResourceHandleGenericParameterHandleAssemblyFileHandleGenericParameterConstraintHandle lub .MethodSpecificationHandle
Zwraca
Wyjątki
Typ uchwytu jest nieoczekiwany.