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

定義

IsDefined(Type, Boolean) メンバーへのバージョンに依存しないアクセス権を持つ COM オブジェクトを提供します。

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

カスタム属性が適用される Type オブジェクト。

inherit
Boolean

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

返品

true attributeTypeの 1 つ以上のインスタンスがこのメンバーに適用されている場合は 7。それ以外の場合はfalse

注釈

このメソッドは、アンマネージ コードからマネージド クラスにアクセスするためのメソッドであり、マネージド コードから呼び出さないでください。

IsDefined メンバーは、attributeTypeの 1 つ以上のインスタンスがこのメンバーに適用されているかどうかを示します。

適用対象