AssemblyBuilder.GetCustomAttributes Metoda

Definicja

Zwraca atrybuty niestandardowe, które zostały zastosowane do bieżącego AssemblyBuilderelementu .

Przeciążenia

GetCustomAttributes(Type, Boolean)

Zwraca wszystkie atrybuty niestandardowe, które zostały zastosowane do bieżącego AssemblyBuildertypu , i pochodzące z określonego typu atrybutu.

GetCustomAttributes(Boolean)

Zwraca wszystkie atrybuty niestandardowe, które zostały zastosowane do bieżącego AssemblyBuilderelementu .

GetCustomAttributes(Type, Boolean)

Źródło:
AssemblyBuilder.cs

Zwraca wszystkie atrybuty niestandardowe, które zostały zastosowane do bieżącego AssemblyBuildertypu , i pochodzące z określonego typu atrybutu.

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()

Parametry

attributeType
Type

Typ podstawowy, z którego pochodzą atrybuty.

inherit
Boolean

Ten argument jest ignorowany dla obiektów tego typu.

Zwraca

Object[]

Tablica zawierająca atrybuty niestandardowe, które pochodzą na dowolnym poziomie z attributeType; tablica jest pusta, jeśli nie ma takich atrybutów.

Wyjątki

attributeType to null.

attributeType nie jest obiektem dostarczonym Type przez środowisko uruchomieniowe. Na przykład attributeType jest obiektem TypeBuilder .

Dotyczy

GetCustomAttributes(Boolean)

Źródło:
AssemblyBuilder.cs

Zwraca wszystkie atrybuty niestandardowe, które zostały zastosowane do bieżącego AssemblyBuilderelementu .

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()

Parametry

inherit
Boolean

Ten argument jest ignorowany dla obiektów tego typu.

Zwraca

Object[]

Tablica zawierająca atrybuty niestandardowe; tablica jest pusta, jeśli nie ma atrybutów.

Dotyczy