Share via


ModuleBuilder.GetCustomAttributes Yöntem

Tanım

Geçerli ModuleBuilderöğesine uygulanan özel öznitelikleri döndürür.

Aşırı Yüklemeler

GetCustomAttributes(Boolean)

Geçerli ModuleBuilderöğesine uygulanmış olan tüm özel öznitelikleri döndürür.

GetCustomAttributes(Type, Boolean)

Geçerli ModuleBuilderöğesine uygulanmış olan ve belirtilen öznitelik türünden türetilen tüm özel öznitelikleri döndürür.

GetCustomAttributes(Boolean)

Kaynak:
ModuleBuilder.cs

Geçerli ModuleBuilderöğesine uygulanmış olan tüm özel öznitelikleri döndürür.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public override object[] GetCustomAttributes (bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides Function GetCustomAttributes (inherit As Boolean) As Object()

Parametreler

inherit
Boolean

Bu türdeki nesneler için bu bağımsız değişken yoksayılır.

Döndürülenler

Object[]

Özel öznitelikleri içeren bir dizi; öznitelik yoksa dizi boş olur.

Şunlara uygulanır

GetCustomAttributes(Type, Boolean)

Kaynak:
ModuleBuilder.cs

Geçerli ModuleBuilderöğesine uygulanmış olan ve belirtilen öznitelik türünden türetilen tüm özel öznitelikleri döndürür.

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ attributeType, bool inherit);
public override object[] GetCustomAttributes (Type attributeType, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()

Parametreler

attributeType
Type

Özniteliklerin türetildiği temel tür.

inherit
Boolean

Bu türdeki nesneler için bu bağımsız değişken yoksayılır.

Döndürülenler

Object[]

herhangi bir düzeyde attributeTypetüretilen özel öznitelikleri içeren bir dizi; böyle öznitelikler yoksa dizi boş olur.

Özel durumlar

attributeType, null değeridir.

attributeType çalışma zamanı tarafından sağlanan bir Type nesne değildir. Örneğin, attributeType bir TypeBuilder nesnedir.

Şunlara uygulanır