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

定義

attributeTypeによって識別されるカスタム属性が定義されているかどうかを示します。

public:
 override bool IsDefined(Type ^ attributeType, bool inherit);
public override bool IsDefined(Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

パラメーター

attributeType
Type

この型の継承チェーンを検索して属性を検索するかどうかを指定します。

inherit
Boolean

型で識別されるカスタム属性の配列。

返品

true attributeTypeで識別されるカスタム属性が定義されている場合は。それ以外の場合はfalse

例外

attributeTypenullです。

カスタム属性の型を読み込めません。

適用対象