英語で読む

次の方法で共有


MemberInfo.ICustomAttributeProvider.GetCustomAttributes メソッド

定義

オーバーロード

ICustomAttributeProvider.GetCustomAttributes(Boolean)

名前付きの属性を除く、このメンバーに定義されているすべてのカスタム属性の配列、またはカスタム属性がない場合は空の配列を返します。

ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)

型で識別された、このメンバーに定義されているカスタム属性の配列、または、この型のカスタム属性がない場合は空の配列を返します。

ICustomAttributeProvider.GetCustomAttributes(Boolean)

名前付きの属性を除く、このメンバーに定義されているすべてのカスタム属性の配列、またはカスタム属性がない場合は空の配列を返します。

C#
object[] ICustomAttributeProvider.GetCustomAttributes (bool inherit);

パラメーター

inherit
Boolean

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

戻り値

Object[]

カスタム属性を表すオブジェクトの配列。または空の配列。

実装

適用対象

.NET Core 1.1 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

ICustomAttributeProvider.GetCustomAttributes(Type, Boolean)

型で識別された、このメンバーに定義されているカスタム属性の配列、または、この型のカスタム属性がない場合は空の配列を返します。

C#
object[] ICustomAttributeProvider.GetCustomAttributes (Type attributeType, bool inherit);

パラメーター

attributeType
Type

カスタム属性の型。

inherit
Boolean

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

戻り値

Object[]

カスタム属性を表すオブジェクトの配列。または空の配列。

実装

適用対象

.NET Core 1.1 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6