CustomAttributeExtensions.GetCustomAttributes Metoda

Definicja

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego elementu.

Przeciążenia

GetCustomAttributes(ParameterInfo, Type, Boolean)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego parametru, i opcjonalnie sprawdza przodków tego parametru.

GetCustomAttributes(MemberInfo, Type, Boolean)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego elementu członkowskiego, i opcjonalnie sprawdza przodków tego elementu członkowskiego.

GetCustomAttributes(ParameterInfo, Type)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego parametru.

GetCustomAttributes(ParameterInfo, Boolean)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego parametru, i opcjonalnie sprawdza przodków tego parametru.

GetCustomAttributes(Module, Type)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego modułu.

GetCustomAttributes(MemberInfo, Type)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego elementu członkowskiego.

GetCustomAttributes(MemberInfo, Boolean)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego elementu członkowskiego, i opcjonalnie sprawdza przodków tego elementu członkowskiego.

GetCustomAttributes(Assembly, Type)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego zestawu.

GetCustomAttributes(ParameterInfo)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego parametru.

GetCustomAttributes(Module)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego modułu.

GetCustomAttributes(MemberInfo)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego elementu członkowskiego.

GetCustomAttributes(Assembly)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego zestawu.

GetCustomAttributes<T>(ParameterInfo, Boolean)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego parametru, i opcjonalnie sprawdza przodków tego parametru.

GetCustomAttributes<T>(MemberInfo, Boolean)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego elementu członkowskiego, i opcjonalnie sprawdza przodków tego elementu członkowskiego.

GetCustomAttributes<T>(ParameterInfo)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego parametru.

GetCustomAttributes<T>(MemberInfo)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego elementu członkowskiego.

GetCustomAttributes<T>(Assembly)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego zestawu.

GetCustomAttributes<T>(Module)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego modułu.

GetCustomAttributes(ParameterInfo, Type, Boolean)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego parametru, i opcjonalnie sprawdza przodków tego parametru.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element, Type ^ attributeType, bool inherit);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.ParameterInfo element, Type attributeType, bool inherit);
static member GetCustomAttributes : System.Reflection.ParameterInfo * Type * bool -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As ParameterInfo, attributeType As Type, inherit As Boolean) As IEnumerable(Of Attribute)

Parametry

element
ParameterInfo

Parametr do wglądu.

attributeType
Type

Typ atrybutu do wyszukiwania.

inherit
Boolean

true do kontroli przodków ; elementw przeciwnym razie , false.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne attributeType, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element lub attributeType ma wartość null.

attributeTypenie pochodzi z .Attribute

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes(MemberInfo, Type, Boolean)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego elementu członkowskiego, i opcjonalnie sprawdza przodków tego elementu członkowskiego.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element, Type ^ attributeType, bool inherit);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.MemberInfo element, Type attributeType, bool inherit);
static member GetCustomAttributes : System.Reflection.MemberInfo * Type * bool -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As MemberInfo, attributeType As Type, inherit As Boolean) As IEnumerable(Of Attribute)

Parametry

element
MemberInfo

Element członkowski do wglądu.

attributeType
Type

Typ atrybutu do wyszukiwania.

inherit
Boolean

true do kontroli przodków ; elementw przeciwnym razie , false.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne attributeType, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element lub attributeType ma wartość null.

attributeTypenie pochodzi z .Attribute

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes(ParameterInfo, Type)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego parametru.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element, Type ^ attributeType);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.ParameterInfo element, Type attributeType);
static member GetCustomAttributes : System.Reflection.ParameterInfo * Type -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As ParameterInfo, attributeType As Type) As IEnumerable(Of Attribute)

Parametry

element
ParameterInfo

Parametr do wglądu.

attributeType
Type

Typ atrybutu do wyszukiwania.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne attributeType, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element lub attributeType ma wartość null.

attributeTypenie pochodzi z .Attribute

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes(ParameterInfo, Boolean)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego parametru, i opcjonalnie sprawdza przodków tego parametru.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element, bool inherit);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.ParameterInfo element, bool inherit);
static member GetCustomAttributes : System.Reflection.ParameterInfo * bool -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As ParameterInfo, inherit As Boolean) As IEnumerable(Of Attribute)

Parametry

element
ParameterInfo

Parametr do wglądu.

inherit
Boolean

true do kontroli przodków ; elementw przeciwnym razie , false.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes(Module, Type)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego modułu.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::Module ^ element, Type ^ attributeType);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.Module element, Type attributeType);
static member GetCustomAttributes : System.Reflection.Module * Type -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As Module, attributeType As Type) As IEnumerable(Of Attribute)

Parametry

element
Module

Moduł do wglądu.

attributeType
Type

Typ atrybutu do wyszukiwania.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne attributeType, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element lub attributeType ma wartość null.

attributeTypenie pochodzi z .Attribute

Dotyczy

GetCustomAttributes(MemberInfo, Type)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego elementu członkowskiego.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element, Type ^ attributeType);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.MemberInfo element, Type attributeType);
static member GetCustomAttributes : System.Reflection.MemberInfo * Type -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As MemberInfo, attributeType As Type) As IEnumerable(Of Attribute)

Parametry

element
MemberInfo

Element członkowski do wglądu.

attributeType
Type

Typ atrybutu do wyszukiwania.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne attributeType, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element lub attributeType ma wartość null.

attributeTypenie pochodzi z .Attribute

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes(MemberInfo, Boolean)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego elementu członkowskiego, i opcjonalnie sprawdza przodków tego elementu członkowskiego.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element, bool inherit);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.MemberInfo element, bool inherit);
static member GetCustomAttributes : System.Reflection.MemberInfo * bool -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As MemberInfo, inherit As Boolean) As IEnumerable(Of Attribute)

Parametry

element
MemberInfo

Element członkowski do wglądu.

inherit
Boolean

true do kontroli przodków ; elementw przeciwnym razie , false.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element określonych kryteriów lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes(Assembly, Type)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego zestawu.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::Assembly ^ element, Type ^ attributeType);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.Assembly element, Type attributeType);
static member GetCustomAttributes : System.Reflection.Assembly * Type -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As Assembly, attributeType As Type) As IEnumerable(Of Attribute)

Parametry

element
Assembly

Zestaw do wglądu.

attributeType
Type

Typ atrybutu do wyszukiwania.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne attributeType, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element lub attributeType ma wartość null.

attributeTypenie pochodzi z .Attribute

Dotyczy

GetCustomAttributes(ParameterInfo)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego parametru.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.ParameterInfo element);
static member GetCustomAttributes : System.Reflection.ParameterInfo -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As ParameterInfo) As IEnumerable(Of Attribute)

Parametry

element
ParameterInfo

Parametr do wglądu.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes(Module)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego modułu.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::Module ^ element);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.Module element);
static member GetCustomAttributes : System.Reflection.Module -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As Module) As IEnumerable(Of Attribute)

Parametry

element
Module

Moduł do wglądu.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

Dotyczy

GetCustomAttributes(MemberInfo)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego elementu członkowskiego.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.MemberInfo element);
static member GetCustomAttributes : System.Reflection.MemberInfo -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As MemberInfo) As IEnumerable(Of Attribute)

Parametry

element
MemberInfo

Element członkowski do wglądu.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes(Assembly)

Pobiera kolekcję atrybutów niestandardowych, które są stosowane do określonego zestawu.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<Attribute ^> ^ GetCustomAttributes(System::Reflection::Assembly ^ element);
public static System.Collections.Generic.IEnumerable<Attribute> GetCustomAttributes (this System.Reflection.Assembly element);
static member GetCustomAttributes : System.Reflection.Assembly -> seq<Attribute>
<Extension()>
Public Function GetCustomAttributes (element As Assembly) As IEnumerable(Of Attribute)

Parametry

element
Assembly

Zestaw do wglądu.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

Dotyczy

GetCustomAttributes<T>(ParameterInfo, Boolean)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego parametru, i opcjonalnie sprawdza przodków tego parametru.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element, bool inherit);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T> (this System.Reflection.ParameterInfo element, bool inherit) where T : Attribute;
static member GetCustomAttributes : System.Reflection.ParameterInfo * bool -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As ParameterInfo, inherit As Boolean) As IEnumerable(Of T)

Parametry typu

T

Typ atrybutu do wyszukiwania.

Parametry

element
ParameterInfo

Parametr do wglądu.

inherit
Boolean

true do kontroli przodków ; elementw przeciwnym razie , false.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne T, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes<T>(MemberInfo, Boolean)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego elementu członkowskiego, i opcjonalnie sprawdza przodków tego elementu członkowskiego.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element, bool inherit);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T> (this System.Reflection.MemberInfo element, bool inherit) where T : Attribute;
static member GetCustomAttributes : System.Reflection.MemberInfo * bool -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As MemberInfo, inherit As Boolean) As IEnumerable(Of T)

Parametry typu

T

Typ atrybutu do wyszukiwania.

Parametry

element
MemberInfo

Element członkowski do wglądu.

inherit
Boolean

true do kontroli przodków ; elementw przeciwnym razie , false.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne T, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes<T>(ParameterInfo)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego parametru.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::ParameterInfo ^ element);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T> (this System.Reflection.ParameterInfo element) where T : Attribute;
static member GetCustomAttributes : System.Reflection.ParameterInfo -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As ParameterInfo) As IEnumerable(Of T)

Parametry typu

T

Typ atrybutu do wyszukiwania.

Parametry

element
ParameterInfo

Parametr do wglądu.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne T, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes<T>(MemberInfo)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego elementu członkowskiego.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::MemberInfo ^ element);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T> (this System.Reflection.MemberInfo element) where T : Attribute;
static member GetCustomAttributes : System.Reflection.MemberInfo -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As MemberInfo) As IEnumerable(Of T)

Parametry typu

T

Typ atrybutu do wyszukiwania.

Parametry

element
MemberInfo

Element członkowski do wglądu.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne T, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

element nie jest konstruktorem, metodą, właściwością, zdarzeniem, typem ani polem.

Nie można załadować typu niestandardowego atrybutu.

Dotyczy

GetCustomAttributes<T>(Assembly)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego zestawu.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::Assembly ^ element);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T> (this System.Reflection.Assembly element) where T : Attribute;
static member GetCustomAttributes : System.Reflection.Assembly -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As Assembly) As IEnumerable(Of T)

Parametry typu

T

Typ atrybutu do wyszukiwania.

Parametry

element
Assembly

Zestaw do wglądu.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne T, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

Dotyczy

GetCustomAttributes<T>(Module)

Pobiera kolekcję atrybutów niestandardowych określonego typu, które są stosowane do określonego modułu.

public:
generic <typename T>
 where T : Attribute[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ GetCustomAttributes(System::Reflection::Module ^ element);
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<T> (this System.Reflection.Module element) where T : Attribute;
static member GetCustomAttributes : System.Reflection.Module -> seq<'T (requires 'T :> Attribute)> (requires 'T :> Attribute)
<Extension()>
Public Function GetCustomAttributes(Of T As Attribute) (element As Module) As IEnumerable(Of T)

Parametry typu

T

Typ atrybutu do wyszukiwania.

Parametry

element
Module

Moduł do wglądu.

Zwraca

Kolekcja atrybutów niestandardowych, które są stosowane do element i które są zgodne T, lub pusta kolekcja, jeśli takie atrybuty nie istnieją.

Wyjątki

element to null.

Dotyczy