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

定義

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

public:
 bool IsDefined(Type ^ attributeType, bool inherit);
public bool IsDefined (Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
Public Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

パラメーター

attributeType
Type

カスタム属性の型。

inherit
Boolean

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

戻り値

Boolean

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

適用対象