MemberInfo.ICustomAttributeProvider.GetCustomAttributes Metoda

Definicja

Przeciążenia

ICustomAttributeProvider.GetCustomAttributes(Boolean)

Zwraca tablicę wszystkich atrybutów niestandardowych zdefiniowanych w tym elemencie członkowskim, z wyłączeniem nazwanych atrybutów lub pustą tablicą, jeśli nie ma atrybutów niestandardowych.

ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)

Zwraca tablicę atrybutów niestandardowych zdefiniowanych na tym elemencie członkowskim, identyfikowaną przez typ lub pustą tablicę, jeśli nie ma atrybutów niestandardowych tego typu.

ICustomAttributeProvider.GetCustomAttributes(Boolean)

Zwraca tablicę wszystkich atrybutów niestandardowych zdefiniowanych w tym elemencie członkowskim, z wyłączeniem nazwanych atrybutów lub pustą tablicą, jeśli nie ma atrybutów niestandardowych.

 virtual cli::array <System::Object ^> ^ System.Reflection.ICustomAttributeProvider.GetCustomAttributes(bool inherit) = System::Reflection::ICustomAttributeProvider::GetCustomAttributes;
object[] ICustomAttributeProvider.GetCustomAttributes (bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.GetCustomAttributes : bool -> obj[]
override this.System.Reflection.ICustomAttributeProvider.GetCustomAttributes : bool -> obj[]
Function GetCustomAttributes (inherit As Boolean) As Object() Implements ICustomAttributeProvider.GetCustomAttributes

Parametry

inherit
Boolean

W przypadku trueelementu wyszukaj łańcuch hierarchii dla dziedziczonego atrybutu niestandardowego.

Zwraca

Object[]

Tablica obiektów reprezentujących atrybuty niestandardowe lub pustą tablicę.

Implementuje

Dotyczy

ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)

Zwraca tablicę atrybutów niestandardowych zdefiniowanych na tym elemencie członkowskim, identyfikowaną przez typ lub pustą tablicę, jeśli nie ma atrybutów niestandardowych tego typu.

 virtual cli::array <System::Object ^> ^ System.Reflection.ICustomAttributeProvider.GetCustomAttributes(Type ^ attributeType, bool inherit) = System::Reflection::ICustomAttributeProvider::GetCustomAttributes;
object[] ICustomAttributeProvider.GetCustomAttributes (Type attributeType, bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.GetCustomAttributes : Type * bool -> obj[]
override this.System.Reflection.ICustomAttributeProvider.GetCustomAttributes : Type * bool -> obj[]
Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object() Implements ICustomAttributeProvider.GetCustomAttributes

Parametry

attributeType
Type

Typ atrybutów niestandardowych.

inherit
Boolean

W przypadku trueelementu wyszukaj łańcuch hierarchii dla dziedziczonego atrybutu niestandardowego.

Zwraca

Object[]

Tablica obiektów reprezentujących atrybuty niestandardowe lub pustą tablicę.

Implementuje

Dotyczy