TypeDelegator.GetCustomAttributes メソッド

定義

この型に対して定義されているすべてのカスタム属性を返します。

オーバーロード

名前 説明
GetCustomAttributes(Boolean)

型の継承チェーンを検索するかどうかを指定して、この型に対して定義されているすべてのカスタム属性を返します。

GetCustomAttributes(Type, Boolean)

型で識別されるカスタム属性の配列を返します。

GetCustomAttributes(Boolean)

型の継承チェーンを検索するかどうかを指定して、この型に対して定義されているすべてのカスタム属性を返します。

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public override object[] GetCustomAttributes(bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides Function GetCustomAttributes (inherit As Boolean) As Object()

パラメーター

inherit
Boolean

この型の継承チェーンを検索して属性を検索するかどうかを指定します。

返品

Object[]

この型に対して定義されているすべてのカスタム属性を含むオブジェクトの配列。

例外

カスタム属性の型を読み込むことができません。

適用対象

GetCustomAttributes(Type, Boolean)

型で識別されるカスタム属性の配列を返します。

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ attributeType, bool inherit);
public override object[] GetCustomAttributes(Type attributeType, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (attributeType As Type, inherit As Boolean) As Object()

パラメーター

attributeType
Type

型で識別されるカスタム属性の配列。

inherit
Boolean

この型の継承チェーンを検索して属性を検索するかどうかを指定します。

返品

Object[]

この型で定義されているカスタム属性を含むオブジェクトの配列。 attributeType パラメーターに一致し、型の継承チェーンを検索するか、この型でカスタム属性が定義されていない場合は null するかを指定します。

例外

attributeTypenullです。

カスタム属性の型を読み込むことができません。

適用対象