CustomAttributeExtensions.IsDefined 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.
Azt jelzi, hogy az egyéni attribútumok alkalmazhatók-e egy elemre.
Túlterhelések
| Name | Description |
|---|---|
| IsDefined(MemberInfo, Type, Boolean) |
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott tagra, és szükség esetén alkalmazva vannak-e az elődökre. |
| IsDefined(Assembly, Type) |
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott szerelvényre. |
| IsDefined(MemberInfo, Type) |
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott tagra. |
| IsDefined(Module, Type) |
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott modulra. |
| IsDefined(ParameterInfo, Type) |
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott paraméterre. |
| IsDefined(ParameterInfo, Type, Boolean) |
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott paraméterre, és szükség esetén alkalmazva vannak-e az elődökre. |
IsDefined(MemberInfo, Type, Boolean)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott tagra, és szükség esetén alkalmazva vannak-e az elődökre.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsDefined(System::Reflection::MemberInfo ^ element, Type ^ attributeType, bool inherit);
public static bool IsDefined(this System.Reflection.MemberInfo element, Type attributeType, bool inherit);
static member IsDefined : System.Reflection.MemberInfo * Type * bool -> bool
<Extension()>
Public Function IsDefined (element As MemberInfo, attributeType As Type, inherit As Boolean) As Boolean
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
true ha a megadott típusú attribútumot alkalmazza a elementrendszer; egyébként false.
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ő.
A következőre érvényes:
IsDefined(Assembly, Type)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott szerelvényre.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsDefined(System::Reflection::Assembly ^ element, Type ^ attributeType);
public static bool IsDefined(this System.Reflection.Assembly element, Type attributeType);
static member IsDefined : System.Reflection.Assembly * Type -> bool
<Extension()>
Public Function IsDefined (element As Assembly, attributeType As Type) As Boolean
Paraméterek
- element
- Assembly
A vizsgálandó szerelvény.
- attributeType
- Type
A keresendő attribútum típusa.
Válaszok
true ha a megadott típusú attribútumot alkalmazza a elementrendszer; egyébként false.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
A következőre érvényes:
IsDefined(MemberInfo, Type)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott tagra.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsDefined(System::Reflection::MemberInfo ^ element, Type ^ attributeType);
public static bool IsDefined(this System.Reflection.MemberInfo element, Type attributeType);
static member IsDefined : System.Reflection.MemberInfo * Type -> bool
<Extension()>
Public Function IsDefined (element As MemberInfo, attributeType As Type) As Boolean
Paraméterek
- element
- MemberInfo
A vizsgálandó tag.
- attributeType
- Type
A keresendő attribútum típusa.
Válaszok
true ha a megadott típusú attribútumot alkalmazza a elementrendszer; egyébként false.
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ő.
A következőre érvényes:
IsDefined(Module, Type)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott modulra.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsDefined(System::Reflection::Module ^ element, Type ^ attributeType);
public static bool IsDefined(this System.Reflection.Module element, Type attributeType);
static member IsDefined : System.Reflection.Module * Type -> bool
<Extension()>
Public Function IsDefined (element As Module, attributeType As Type) As Boolean
Paraméterek
- element
- Module
A vizsgálandó modul.
- attributeType
- Type
A keresendő attribútum típusa.
Válaszok
true ha a megadott típusú attribútumot alkalmazza a elementrendszer; egyébként false.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
A következőre érvényes:
IsDefined(ParameterInfo, Type)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott paraméterre.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsDefined(System::Reflection::ParameterInfo ^ element, Type ^ attributeType);
public static bool IsDefined(this System.Reflection.ParameterInfo element, Type attributeType);
static member IsDefined : System.Reflection.ParameterInfo * Type -> bool
<Extension()>
Public Function IsDefined (element As ParameterInfo, attributeType As Type) As Boolean
Paraméterek
- element
- ParameterInfo
A vizsgálandó paraméter.
- attributeType
- Type
A keresendő attribútum típusa.
Válaszok
true ha a megadott típusú attribútumot alkalmazza a elementrendszer; egyébként false.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.
A következőre érvényes:
IsDefined(ParameterInfo, Type, Boolean)
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
- Forrás:
- CustomAttributeExtensions.cs
Azt jelzi, hogy a megadott típusú egyéni attribútumok alkalmazhatók-e egy adott paraméterre, és szükség esetén alkalmazva vannak-e az elődökre.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsDefined(System::Reflection::ParameterInfo ^ element, Type ^ attributeType, bool inherit);
public static bool IsDefined(this System.Reflection.ParameterInfo element, Type attributeType, bool inherit);
static member IsDefined : System.Reflection.ParameterInfo * Type * bool -> bool
<Extension()>
Public Function IsDefined (element As ParameterInfo, attributeType As Type, inherit As Boolean) As Boolean
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
true ha a megadott típusú attribútumot alkalmazza a elementrendszer; egyébként false.
Kivételek
element vagy attributeType az null.
attributeType nem származik a .-ból Attribute.