PropertyBuilder.GetCustomAttributes Método

Definición

Devuelve todos los atributos personalizados definidos en esta propiedad.

Sobrecargas

Nombre Description
GetCustomAttributes(Boolean)

Devuelve una matriz de todos los atributos personalizados de esta propiedad.

GetCustomAttributes(Type, Boolean)

Devuelve una matriz de atributos personalizados identificados por Type.

GetCustomAttributes(Boolean)

Devuelve una matriz de todos los atributos personalizados de esta propiedad.

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

Si truees , recorre la cadena de herencia de esta propiedad para buscar los atributos personalizados.

Devoluciones

Object[]

Matriz de todos los atributos personalizados.

Excepciones

Este método no se admite.

Comentarios

Refleje el tipo primario de la propiedad mediante Type.GetType o Assembly.GetType, recupere el objeto de propiedad Reflection del tipo y llame a PropertyInfo.GetCustomAttributes.

Se aplica a

GetCustomAttributes(Type, Boolean)

Devuelve una matriz de atributos personalizados identificados por 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

Matriz de atributos personalizados identificados por tipo.

inherit
Boolean

Si truees , recorre la cadena de herencia de esta propiedad para buscar los atributos personalizados.

Devoluciones

Object[]

Matriz de atributos personalizados definidos en este miembro reflejado o null si no se define ningún atributo en este miembro.

Excepciones

Este método no se admite.

Comentarios

Refleje el tipo primario de la propiedad mediante Type.GetType o Assembly.GetType, recupere el objeto de propiedad Reflection del tipo y llame a PropertyInfo.GetCustomAttributes.

Se aplica a