AssemblyBuilder.GetCustomAttributes AssemblyBuilder.GetCustomAttributes AssemblyBuilder.GetCustomAttributes AssemblyBuilder.GetCustomAttributes Method

Definition

Returns custom attributes that have been applied to the current AssemblyBuilder

Overloads

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

Returns all the custom attributes that have been applied to the current AssemblyBuilder.

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

Returns all the custom attributes that have been applied to the current AssemblyBuilder, and that derive from a specified attribute type.

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

Returns all the custom attributes that have been applied to the current AssemblyBuilder.

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

This argument is ignored for objects of this type.

Returns

Object[]

An array that contains the custom attributes; the array is empty if there are no attributes.

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

Returns all the custom attributes that have been applied to the current AssemblyBuilder, and that derive from a specified attribute 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

The base type from which attributes derive.

inherit
Boolean Boolean Boolean Boolean

This argument is ignored for objects of this type.

Returns

Object[]

An array that contains the custom attributes that are derived at any level from attributeType; the array is empty if there are no such attributes.

Exceptions

attributeType is not a Type object supplied by the runtime. For example, attributeType is a TypeBuilder object.

Applies to