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

定義

このメンバーにカスタム属性の型のインスタンスが 1 つ以上定義されているかどうかを示します。

public virtual bool IsDefined (Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
override this.IsDefined : Type * bool -> bool
Public Overridable Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

パラメーター

attributeType
Type

カスタム属性の型。

inherit
Boolean

継承されたカスタム属性の階層チェーンを検索する場合は true。それ以外の場合は false。

戻り値

このメンバーに対してカスタム属性の型が定義されている場合は true。それ以外の場合は false。

実装

例外

attributeType パラメーターが null です。

適用対象