CustomAttributeExtensions.IsDefined メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
カスタム属性が要素に適用されるかどうかを示します。
オーバーロード
| 名前 | 説明 |
|---|---|
| IsDefined(MemberInfo, Type, Boolean) |
指定した型のカスタム属性が指定したメンバーに適用され、必要に応じてその先祖に適用されるかどうかを示します。 |
| IsDefined(Assembly, Type) |
指定した型のカスタム属性が、指定したアセンブリに適用されるかどうかを示します。 |
| IsDefined(MemberInfo, Type) |
指定した型のカスタム属性が、指定したメンバーに適用されるかどうかを示します。 |
| IsDefined(Module, Type) |
指定した型のカスタム属性が指定したモジュールに適用されるかどうかを示します。 |
| IsDefined(ParameterInfo, Type) |
指定した型のカスタム属性が、指定したパラメーターに適用されるかどうかを示します。 |
| IsDefined(ParameterInfo, Type, Boolean) |
指定した型のカスタム属性が指定したパラメーターに適用され、必要に応じてその先祖に適用されるかどうかを示します。 |
IsDefined(MemberInfo, Type, Boolean)
指定した型のカスタム属性が指定したメンバーに適用され、必要に応じてその先祖に適用されるかどうかを示します。
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
パラメーター
- element
- MemberInfo
検査するメンバー。
- attributeType
- Type
検索する属性の型。
- inherit
- Boolean
true
elementの先祖を検査する場合は。それ以外の場合はfalse。
返品
true 指定した型の属性が elementに適用される場合は。それ以外の場合は false。
例外
element または attributeType が null。
attributeType は Attributeから派生していません。
element は、コンストラクター、メソッド、プロパティ、イベント、型、またはフィールドではありません。
適用対象
IsDefined(Assembly, Type)
指定した型のカスタム属性が、指定したアセンブリに適用されるかどうかを示します。
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
パラメーター
- element
- Assembly
検査するアセンブリ。
- attributeType
- Type
検索する属性の型。
返品
true 指定した型の属性が elementに適用される場合は。それ以外の場合は false。
例外
element または attributeType が null。
attributeType は Attributeから派生していません。
適用対象
IsDefined(MemberInfo, Type)
指定した型のカスタム属性が、指定したメンバーに適用されるかどうかを示します。
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
パラメーター
- element
- MemberInfo
検査するメンバー。
- attributeType
- Type
検索する属性の種類。
返品
true 指定した型の属性が elementに適用される場合は。それ以外の場合は false。
例外
element または attributeType が null。
attributeType は Attributeから派生していません。
element は、コンストラクター、メソッド、プロパティ、イベント、型、またはフィールドではありません。
適用対象
IsDefined(Module, Type)
指定した型のカスタム属性が指定したモジュールに適用されるかどうかを示します。
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
パラメーター
- element
- Module
検査するモジュール。
- attributeType
- Type
検索する属性の種類。
返品
true 指定した型の属性が elementに適用される場合は。それ以外の場合は false。
例外
element または attributeType が null。
attributeType は Attributeから派生していません。
適用対象
IsDefined(ParameterInfo, Type)
指定した型のカスタム属性が、指定したパラメーターに適用されるかどうかを示します。
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
パラメーター
- element
- ParameterInfo
検査するパラメーター。
- attributeType
- Type
検索する属性の種類。
返品
true 指定した型の属性が elementに適用される場合は。それ以外の場合は false。
例外
element または attributeType が null。
attributeType は Attributeから派生していません。
適用対象
IsDefined(ParameterInfo, Type, Boolean)
指定した型のカスタム属性が指定したパラメーターに適用され、必要に応じてその先祖に適用されるかどうかを示します。
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
パラメーター
- element
- ParameterInfo
検査するパラメーター。
- attributeType
- Type
検索する属性の種類。
- inherit
- Boolean
true
elementの先祖を検査する場合は。それ以外の場合はfalse。
返品
true 指定した型の属性が elementに適用される場合は。それ以外の場合は false。
例外
element または attributeType が null。
attributeType は Attributeから派生していません。