MetadataBuilder.AddCustomAttribute 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.
Dodaje atrybut niestandardowy.
public:
System::Reflection::Metadata::CustomAttributeHandle AddCustomAttribute(System::Reflection::Metadata::EntityHandle parent, System::Reflection::Metadata::EntityHandle constructor, System::Reflection::Metadata::BlobHandle value);
public System.Reflection.Metadata.CustomAttributeHandle AddCustomAttribute(System.Reflection.Metadata.EntityHandle parent, System.Reflection.Metadata.EntityHandle constructor, System.Reflection.Metadata.BlobHandle value);
member this.AddCustomAttribute : System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.EntityHandle * System.Reflection.Metadata.BlobHandle -> System.Reflection.Metadata.CustomAttributeHandle
Public Function AddCustomAttribute (parent As EntityHandle, constructor As EntityHandle, value As BlobHandle) As CustomAttributeHandle
Parametry
- parent
- EntityHandle
Jednostka do dołączania atrybutu niestandardowego do: a MethodDefinitionHandle, , , ParameterHandleExportedTypeHandleTypeReferenceHandleFieldDefinitionHandleTypeDefinitionHandleInterfaceImplementationHandleStandaloneSignatureHandleEventDefinitionHandleModuleReferenceHandlePropertyDefinitionHandleTypeSpecificationHandleDeclarativeSecurityAttributeHandleAssemblyDefinitionHandleAssemblyReferenceHandleModuleDefinitionHandleMemberReferenceHandleManifestResourceHandleGenericParameterHandleAssemblyFileHandleGenericParameterConstraintHandlelub .MethodSpecificationHandle
- constructor
- EntityHandle
Konstruktor atrybutu niestandardowego: a MethodDefinitionHandle lub MemberReferenceHandle.
- value
- BlobHandle
Obiekt blob wartości atrybutu niestandardowego.
Zwraca
Dojście do dodanego atrybutu niestandardowego.
Wyjątki
parent nie ma oczekiwanego rodzaju uchwytu.
Uwagi
Wpisy mogą być dodawane w dowolnej kolejności. Tabela jest automatycznie sortowana po serializacji.