ModuleBuilder.GetCustomAttributes Método

Definição

Retorna os atributos personalizados que são aplicados ao ModuleBuilder atual.Returns the custom attributes that are applied to the current ModuleBuilder.

Sobrecargas

GetCustomAttributes(Boolean)

Retorna todos os atributos personalizados que foram aplicados ao ModuleBuilder atual.Returns all the custom attributes that have been applied to the current ModuleBuilder.

GetCustomAttributes(Type, Boolean)

Retorna todos os atributos personalizados que foram aplicados ao ModuleBuilder atual e que derivam de um tipo de atributo especificado.Returns all the custom attributes that have been applied to the current ModuleBuilder, and that derive from a specified attribute type.

GetCustomAttributes(Boolean)

Retorna todos os atributos personalizados que foram aplicados ao ModuleBuilder atual.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()

Parâmetros

inherit
Boolean

Este argumento é ignorado para objetos deste tipo.This argument is ignored for objects of this type.

Retornos

Object[]

Uma matriz que contém os atributos personalizados; a matriz será vazia se não houver nenhum atributo.An array that contains the custom attributes; the array is empty if there are no attributes.

Aplica-se a

GetCustomAttributes(Type, Boolean)

Retorna todos os atributos personalizados que foram aplicados ao ModuleBuilder atual e que derivam de um tipo de atributo especificado.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()

Parâmetros

attributeType
Type

O tipo base do qual derivam os atributos.The base type from which attributes derive.

inherit
Boolean

Este argumento é ignorado para objetos deste tipo.This argument is ignored for objects of this type.

Retornos

Object[]

Uma matriz que contém os atributos personalizados que são derivados em qualquer nível de attributeType; a matriz será vazia se não houver nenhum desses atributos.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.

Exceções

attributeType é null.attributeType is null.

attributeType não é um objeto Type fornecido pelo runtime.attributeType is not a Type object supplied by the runtime. Por exemplo, attributeType é um objeto TypeBuilder.For example, attributeType is a TypeBuilder object.

Aplica-se a