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

定義

指定した属性型がこのモジュールに適用されているかどうかを示す値を返します。

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の 1 つ以上のインスタンスがこのモジュールに適用されている場合は |。それ以外の場合はfalse

例外

attributeTypenullです。

attributeType はランタイムによって提供される Type オブジェクトではありません。 たとえば、 attributeTypeTypeBuilder オブジェクトです。

適用対象