_MethodInfo.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 このメンバーの継承チェーンを検索して属性を検索する場合。それ以外の場合は false

返品

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

注釈

このメソッドは、アンマネージ コードからマネージド クラスにアクセスするためのメソッドであり、マネージド コードから呼び出すべきではありません。

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

適用対象