Assembly.ICustomAttributeProvider.IsDefined(Type, Boolean) メソッド

定義

attributeType の 1 つ以上のインスタンスがこのメンバーで定義されているかどうかを示します。

C#
bool ICustomAttributeProvider.IsDefined (Type attributeType, bool inherit);

パラメーター

attributeType
Type

カスタム属性の型。

inherit
Boolean

true の場合、継承されたカスタム属性の階層チェーンを検索します。

戻り値

attributeType がこのメンバーで定義されている場合は true。それ以外の場合は false

実装

適用対象

製品 バージョン
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6