CustomAttributeExtensions.GetCustomAttributes Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Egy adott elemre alkalmazott egyéni attribútumok gyűjteményét kéri le.
Túlterhelések
| Name | Description |
|---|---|
| GetCustomAttributes(ParameterInfo, Type, Boolean) |
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott paraméterre vannak alkalmazva, és opcionálisan az adott paraméter elődeit is ellenőrzik. |
| GetCustomAttributes(MemberInfo, Type, Boolean) |
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott tagra vonatkoznak, és opcionálisan az adott tag elődeit is érintik. |
| GetCustomAttributes(ParameterInfo, Type) |
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott paraméterre lesznek alkalmazva. |
| GetCustomAttributes(ParameterInfo, Boolean) |
Lekéri egy adott paraméterre alkalmazott egyéni attribútumok gyűjteményét, és opcionálisan az adott paraméter elődeit vizsgálja meg. |
| GetCustomAttributes(Module, Type) |
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott modulra lesznek alkalmazva. |
| GetCustomAttributes(MemberInfo, Type) |
Egy megadott típusú egyéni attribútumok gyűjteményét kéri le, amelyeket egy adott tagra alkalmaz. |
| GetCustomAttributes(MemberInfo, Boolean) |
Lekéri a megadott tagra alkalmazott egyéni attribútumok gyűjteményét, és opcionálisan az adott tag őseit vizsgálja meg. |
| GetCustomAttributes(Assembly, Type) |
Egy megadott típusú egyéni attribútumok gyűjteményét kéri le, amelyek egy adott szerelvényre lesznek alkalmazva. |
| GetCustomAttributes(ParameterInfo) |
Egy adott paraméterre alkalmazott egyéni attribútumok gyűjteményét kéri le. |
| GetCustomAttributes(Module) |
Egy adott modulra alkalmazott egyéni attribútumok gyűjteményét kéri le. |
| GetCustomAttributes(MemberInfo) |
Egy adott tagra alkalmazott egyéni attribútumok gyűjteményét kéri le. |
| GetCustomAttributes(Assembly) |
Egy adott szerelvényre alkalmazott egyéni attribútumok gyűjteményét kéri le. |
| GetCustomAttributes<T>(ParameterInfo, Boolean) |
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott paraméterre vannak alkalmazva, és opcionálisan az adott paraméter elődeit is ellenőrzik. |
| GetCustomAttributes<T>(MemberInfo, Boolean) |
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott tagra vonatkoznak, és opcionálisan az adott tag elődeit is érintik. |
| GetCustomAttributes<T>(ParameterInfo) |
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott paraméterre lesznek alkalmazva. |
| GetCustomAttributes<T>(MemberInfo) |
Egy megadott típusú egyéni attribútumok gyűjteményét kéri le, amelyeket egy adott tagra alkalmaz. |
| GetCustomAttributes<T>(Assembly) |
Egy megadott típusú egyéni attribútumok gyűjteményét kéri le, amelyek egy adott szerelvényre lesznek alkalmazva. |
| GetCustomAttributes<T>(Module) |
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott modulra lesznek alkalmazva. |
GetCustomAttributes(ParameterInfo, Type, Boolean)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott paraméterre vannak alkalmazva, és opcionálisan az adott paraméter elődeit is ellenőrzik.
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)
Paraméterek
- element
- ParameterInfo
A vizsgálandó paraméter.
- attributeType
- Type
A keresendő attribútum típusa.
- inherit
- Boolean
truehogy vizsgálja meg az ősökelement; egyébként. false
Válaszok
Az alkalmazott element és egyező attributeTypeegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes(MemberInfo, Type, Boolean)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott tagra vonatkoznak, és opcionálisan az adott tag elődeit is érintik.
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)
Paraméterek
- element
- MemberInfo
A vizsgálandó tag.
- attributeType
- Type
A keresendő attribútum típusa.
- inherit
- Boolean
truehogy vizsgálja meg az ősökelement; egyébként. false
Válaszok
Az alkalmazott element és egyező attributeTypeegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes(ParameterInfo, Type)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott paraméterre lesznek alkalmazva.
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)
Paraméterek
- element
- ParameterInfo
A vizsgálandó paraméter.
- attributeType
- Type
A keresendő attribútum típusa.
Válaszok
Az alkalmazott element és egyező attributeTypeegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes(ParameterInfo, Boolean)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri egy adott paraméterre alkalmazott egyéni attribútumok gyűjteményét, és opcionálisan az adott paraméter elődeit vizsgálja meg.
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)
Paraméterek
- element
- ParameterInfo
A vizsgálandó paraméter.
- inherit
- Boolean
truehogy vizsgálja meg az ősökelement; egyébként. false
Válaszok
Az alkalmazott elementegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes(Module, Type)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott modulra lesznek alkalmazva.
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)
Paraméterek
- element
- Module
A vizsgálandó modul.
- attributeType
- Type
A keresendő attribútum típusa.
Válaszok
Az alkalmazott element és egyező attributeTypeegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
A következőre érvényes:
GetCustomAttributes(MemberInfo, Type)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Egy megadott típusú egyéni attribútumok gyűjteményét kéri le, amelyeket egy adott tagra alkalmaz.
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)
Paraméterek
- element
- MemberInfo
A vizsgálandó tag.
- attributeType
- Type
A keresendő attribútum típusa.
Válaszok
Az alkalmazott element és egyező attributeTypeegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes(MemberInfo, Boolean)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott tagra alkalmazott egyéni attribútumok gyűjteményét, és opcionálisan az adott tag őseit vizsgálja meg.
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)
Paraméterek
- element
- MemberInfo
A vizsgálandó tag.
- inherit
- Boolean
truehogy vizsgálja meg az ősökelement; egyébként. false
Válaszok
A megadott feltételeknek megfelelő egyéni attribútumok element gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes(Assembly, Type)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Egy megadott típusú egyéni attribútumok gyűjteményét kéri le, amelyek egy adott szerelvényre lesznek alkalmazva.
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)
Paraméterek
- element
- Assembly
A vizsgálandó szerelvény.
- attributeType
- Type
A keresendő attribútum típusa.
Válaszok
Az alkalmazott element és egyező attributeTypeegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
A következőre érvényes:
GetCustomAttributes(ParameterInfo)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Egy adott paraméterre alkalmazott egyéni attribútumok gyűjteményét kéri le.
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)
Paraméterek
- element
- ParameterInfo
A vizsgálandó paraméter.
Válaszok
Az alkalmazott elementegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes(Module)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Egy adott modulra alkalmazott egyéni attribútumok gyűjteményét kéri le.
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)
Paraméterek
- element
- Module
A vizsgálandó modul.
Válaszok
Az alkalmazott elementegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
A következőre érvényes:
GetCustomAttributes(MemberInfo)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Egy adott tagra alkalmazott egyéni attribútumok gyűjteményét kéri le.
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)
Paraméterek
- element
- MemberInfo
A vizsgálandó tag.
Válaszok
Az alkalmazott elementegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes(Assembly)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Egy adott szerelvényre alkalmazott egyéni attribútumok gyűjteményét kéri le.
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)
Paraméterek
- element
- Assembly
A vizsgálandó szerelvény.
Válaszok
Az alkalmazott elementegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
A következőre érvényes:
GetCustomAttributes<T>(ParameterInfo, Boolean)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott paraméterre vannak alkalmazva, és opcionálisan az adott paraméter elődeit is ellenőrzik.
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)
Típusparaméterek
- T
A keresendő attribútum típusa.
Paraméterek
- element
- ParameterInfo
A vizsgálandó paraméter.
- inherit
- Boolean
truehogy vizsgálja meg az ősökelement; egyébként. false
Válaszok
Az alkalmazott element és egyező Tegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes<T>(MemberInfo, Boolean)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott tagra vonatkoznak, és opcionálisan az adott tag elődeit is érintik.
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)
Típusparaméterek
- T
A keresendő attribútum típusa.
Paraméterek
- element
- MemberInfo
A vizsgálandó tag.
- inherit
- Boolean
truehogy vizsgálja meg az ősökelement; egyébként. false
Válaszok
Az alkalmazott element és egyező Tegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes<T>(ParameterInfo)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott paraméterre lesznek alkalmazva.
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)
Típusparaméterek
- T
A keresendő attribútum típusa.
Paraméterek
- element
- ParameterInfo
A vizsgálandó paraméter.
Válaszok
Az alkalmazott element és egyező Tegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes<T>(MemberInfo)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Egy megadott típusú egyéni attribútumok gyűjteményét kéri le, amelyeket egy adott tagra alkalmaz.
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)
Típusparaméterek
- T
A keresendő attribútum típusa.
Paraméterek
- element
- MemberInfo
A vizsgálandó tag.
Válaszok
Az alkalmazott element és egyező Tegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
element nem konstruktor, metódus, tulajdonság, esemény, típus vagy mező.
Egyéni attribútumtípus nem tölthető be.
A következőre érvényes:
GetCustomAttributes<T>(Assembly)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Egy megadott típusú egyéni attribútumok gyűjteményét kéri le, amelyek egy adott szerelvényre lesznek alkalmazva.
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)
Típusparaméterek
- T
A keresendő attribútum típusa.
Paraméterek
- element
- Assembly
A vizsgálandó szerelvény.
Válaszok
Az alkalmazott element és egyező Tegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.
A következőre érvényes:
GetCustomAttributes<T>(Module)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Lekéri a megadott típusú egyéni attribútumok gyűjteményét, amelyek egy adott modulra lesznek alkalmazva.
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)
Típusparaméterek
- T
A keresendő attribútum típusa.
Paraméterek
- element
- Module
A vizsgálandó modul.
Válaszok
Az alkalmazott element és egyező Tegyéni attribútumok gyűjteménye, vagy üres gyűjtemény, ha nincsenek ilyen attribútumok.
Kivételek
element az null.