MetadataBuilder.AddCustomAttribute Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Özel bir öznitelik ekler.
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
Parametreler
- parent
- EntityHandle
Özel özniteliğin ekleneceği varlık: bir , , , , TypeDefinitionHandle, StandaloneSignatureHandleModuleDefinitionHandleEventDefinitionHandleInterfaceImplementationHandleMemberReferenceHandlePropertyDefinitionHandleParameterHandleDeclarativeSecurityAttributeHandle, ModuleReferenceHandle, , TypeSpecificationHandle, AssemblyDefinitionHandle, , ExportedTypeHandleGenericParameterHandleGenericParameterConstraintHandleManifestResourceHandleAssemblyReferenceHandleAssemblyFileHandleveya .MethodSpecificationHandleTypeReferenceHandleFieldDefinitionHandleMethodDefinitionHandle
- constructor
- EntityHandle
Özel öznitelik oluşturucu: a MethodDefinitionHandle veya MemberReferenceHandle.
- value
- BlobHandle
Özel öznitelik değeri blobu.
Döndürülenler
Eklenen özel özniteliğin tanıtıcısı.
Özel durumlar
parent
beklenen tanıtıcı türüne sahip değil.
Açıklamalar
Girdiler herhangi bir sırada eklenebilir. Tablo, seri hale getirildiğinde otomatik olarak sıralanır.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin