MemberInfo.ICustomAttributeProvider.IsDefined(Type, Boolean) メソッド

定義

attributeType の 1 つ以上のインスタンスがこのメンバーで定義されているかどうかを示します。

 virtual bool System.Reflection.ICustomAttributeProvider.IsDefined(Type ^ attributeType, bool inherit) = System::Reflection::ICustomAttributeProvider::IsDefined;
bool ICustomAttributeProvider.IsDefined (Type attributeType, bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
override this.System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean Implements ICustomAttributeProvider.IsDefined

パラメーター

attributeType
Type

カスタム属性の型。

inherit
Boolean

true の場合、継承されたカスタム属性の階層チェーンを検索します。

戻り値

attributeType がこのメンバーで定義されている場合は true。それ以外の場合は false

実装

適用対象