ModuleBuilder.SetCustomAttribute Yöntem

Tanım

Bu modüle özel bir öznitelik uygular.

Aşırı Yüklemeler

Name Description
SetCustomAttribute(CustomAttributeBuilder)

Özel öznitelik oluşturucu kullanarak bu modüle özel bir öznitelik uygular.

SetCustomAttribute(ConstructorInfo, Byte[])

Özniteliği temsil eden belirtilen bir ikili büyük nesne (BLOB) kullanarak bu modüle özel bir öznitelik uygular.

SetCustomAttribute(CustomAttributeBuilder)

Özel öznitelik oluşturucu kullanarak bu modüle özel bir öznitelik uygular.

public:
 void SetCustomAttribute(System::Reflection::Emit::CustomAttributeBuilder ^ customBuilder);
public void SetCustomAttribute(System.Reflection.Emit.CustomAttributeBuilder customBuilder);
member this.SetCustomAttribute : System.Reflection.Emit.CustomAttributeBuilder -> unit
Public Sub SetCustomAttribute (customBuilder As CustomAttributeBuilder)

Parametreler

customBuilder
CustomAttributeBuilder

Uygulanacak özel özniteliği belirten bir yardımcı sınıfı örneği.

Özel durumlar

customBuilder, null'e eşittir.

Şunlara uygulanır

SetCustomAttribute(ConstructorInfo, Byte[])

Özniteliği temsil eden belirtilen bir ikili büyük nesne (BLOB) kullanarak bu modüle özel bir öznitelik uygular.

public:
 void SetCustomAttribute(System::Reflection::ConstructorInfo ^ con, cli::array <System::Byte> ^ binaryAttribute);
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute);
[System.Runtime.InteropServices.ComVisible(true)]
public void SetCustomAttribute(System.Reflection.ConstructorInfo con, byte[] binaryAttribute);
member this.SetCustomAttribute : System.Reflection.ConstructorInfo * byte[] -> unit
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.SetCustomAttribute : System.Reflection.ConstructorInfo * byte[] -> unit
Public Sub SetCustomAttribute (con As ConstructorInfo, binaryAttribute As Byte())

Parametreler

con
ConstructorInfo

Özel özniteliğin oluşturucus.

binaryAttribute
Byte[]

Özniteliği temsil eden bayt BLOB'u.

Öznitelikler

Özel durumlar

con veya binaryAttribute şeklindedir null.

Açıklamalar

biçimlendirme binaryAttributehakkında daha fazla bilgi için ortak dil altyapısı (CLI) belgelerine, özellikle de "Bölüm II: Meta Veri Tanımı ve Anlam" bölümüne bakın. Daha fazla bilgi için bkz. ECMA 335 Ortak Dil Altyapısı (CLI).

Şunlara uygulanır