GenericTypeParameterBuilder.GetCustomAttributes Metod

Definition

Stöds inte för ofullständiga generiska typparametrar.

Överlagringar

Name Description
GetCustomAttributes(Boolean)

Stöds inte för ofullständiga generiska typparametrar.

GetCustomAttributes(Type, Boolean)

Stöds inte för ofullständiga generiska typparametrar.

GetCustomAttributes(Boolean)

Källa:
GenericTypeParameterBuilder.cs

Stöds inte för ofullständiga generiska typparametrar.

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()

Parametrar

inherit
Boolean

Anger om du vill söka i den här medlemmens arvskedja för att hitta attributen.

Returer

Object[]

Stöds inte för ofullständiga generiska typparametrar.

Undantag

I samtliga fall.

Kommentarer

Den här metoden stöds inte för ofullständiga generiska typparametrar. Hämta typparametern från den slutförda generiska typdefinitionen och använd sedan reflektion över den hämtade typen.

Gäller för

GetCustomAttributes(Type, Boolean)

Källa:
GenericTypeParameterBuilder.cs

Stöds inte för ofullständiga generiska typparametrar.

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()

Parametrar

attributeType
Type

Typ av attribut att söka efter. Endast attribut som kan tilldelas den här typen returneras.

inherit
Boolean

Anger om du vill söka i den här medlemmens arvskedja för att hitta attributen.

Returer

Object[]

Stöds inte för ofullständiga generiska typparametrar.

Undantag

I samtliga fall.

Kommentarer

Den här metoden stöds inte för ofullständiga generiska typparametrar. Hämta typparametern från den slutförda generiska typdefinitionen och använd sedan reflektion över den hämtade typen.

Gäller för