ConstructorBuilder.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 指定したカスタム属性の型が定義されている場合。それ以外の場合は false

例外

このメソッドは現在サポートされていません。 GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])を使用してコンストラクターを取得し、返されたConstructorInfoIsDefined(Type, Boolean)を呼び出すことができます。

注釈

binaryAttributeの書式設定方法の詳細については、メタデータの仕様を参照してください。

適用対象