Aracılığıyla paylaş


MetadataBuilder.AddCustomAttribute Yöntem

Tanım

Ö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

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