TypeDelegator.GetCustomAttributes TypeDelegator.GetCustomAttributes TypeDelegator.GetCustomAttributes TypeDelegator.GetCustomAttributes Method

Definition

Returns all the custom attributes defined for this type.

Overloads

GetCustomAttributes(Boolean) GetCustomAttributes(Boolean) GetCustomAttributes(Boolean) GetCustomAttributes(Boolean)

Returns all the custom attributes defined for this type, specifying whether to search the type's inheritance chain.

GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean)

Returns an array of custom attributes identified by type.

GetCustomAttributes(Boolean) GetCustomAttributes(Boolean) GetCustomAttributes(Boolean) GetCustomAttributes(Boolean)

Returns all the custom attributes defined for this type, specifying whether to search the type's inheritance chain.

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()

Parameters

inherit
Boolean Boolean Boolean Boolean

Specifies whether to search this type's inheritance chain to find the attributes.

Returns

Object[]

An array of objects containing all the custom attributes defined for this type.

Exceptions

A custom attribute type cannot be loaded.

GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean)

Returns an array of custom attributes identified by type.

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()

Parameters

attributeType
Type Type Type Type

An array of custom attributes identified by type.

inherit
Boolean Boolean Boolean Boolean

Specifies whether to search this type's inheritance chain to find the attributes.

Returns

Object[]

An array of objects containing the custom attributes defined in this type that match the attributeType parameter, specifying whether to search the type's inheritance chain, or null if no custom attributes are defined on this type.

Exceptions

A custom attribute type cannot be loaded.

Applies to