Uređivanje

Dijeli putem


GenericTypeParameterBuilder.GetCustomAttributes Method

Definition

Not supported for incomplete generic type parameters.

Overloads

GetCustomAttributes(Boolean)

Not supported for incomplete generic type parameters.

GetCustomAttributes(Type, Boolean)

Not supported for incomplete generic type parameters.

GetCustomAttributes(Boolean)

Source:
GenericTypeParameterBuilder.cs

Not supported for incomplete generic type parameters.

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

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

Returns

Object[]

Not supported for incomplete generic type parameters.

Exceptions

In all cases.

Remarks

This method is not supported for incomplete generic type parameters. Retrieve the type parameter from the completed generic type definition and then use reflection on the retrieved type.

Applies to

GetCustomAttributes(Type, Boolean)

Source:
GenericTypeParameterBuilder.cs

Not supported for incomplete generic type parameters.

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 type of attribute to search for. Only attributes that are assignable to this type are returned.

inherit
Boolean

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

Returns

Object[]

Not supported for incomplete generic type parameters.

Exceptions

In all cases.

Remarks

This method is not supported for incomplete generic type parameters. Retrieve the type parameter from the completed generic type definition and then use reflection on the retrieved type.

Applies to