Breyta

Deila með


ModuleBuilder.GetCustomAttributes Method

Definition

Returns the custom attributes that are applied to the current ModuleBuilder.

Overloads

GetCustomAttributes(Boolean)

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

GetCustomAttributes(Type, Boolean)

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

GetCustomAttributes(Boolean)

Source:
ModuleBuilder.cs

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

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

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.

Applies to

GetCustomAttributes(Type, Boolean)

Source:
ModuleBuilder.cs

Returns all the custom attributes that have been applied to the current ModuleBuilder, 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

The base type from which attributes derive.

inherit
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 null.

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

Applies to