MethodBuilder.GetCustomAttributes Yöntem

Tanım

Bu yöntem için tanımlanan özel öznitelikleri döndürür.

Aşırı Yüklemeler

Name Description
GetCustomAttributes(Boolean)

Bu yöntem için tanımlanan tüm özel öznitelikleri döndürür.

GetCustomAttributes(Type, Boolean)

Verilen tür tarafından tanımlanan özel öznitelikleri döndürür.

GetCustomAttributes(Boolean)

Kaynak:
MethodBuilder.cs

Bu yöntem için tanımlanan tüm özel öznitelikleri döndürür.

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

Parametreler

inherit
Boolean

Özel öznitelikleri bulmak için bu üyenin devralma zincirinde arama yapılıp yapılmayacağını belirtir.

Döndürülenler

Object[]

Bu yöntemin tüm özel özniteliklerini temsil eden bir nesne dizisi döndürür.

Özel durumlar

Bu yöntem şu anda desteklenmiyor. kullanarak GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) yöntemini alın ve döndürülen GetCustomAttributes(Boolean)üzerinde öğesini çağırınMethodInfo.

Şunlara uygulanır

GetCustomAttributes(Type, Boolean)

Kaynak:
MethodBuilder.cs

Verilen tür tarafından tanımlanan özel öznitelikleri döndürür.

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

Parametreler

attributeType
Type

Özel öznitelik türü.

inherit
Boolean

Özel öznitelikleri bulmak için bu üyenin devralma zincirinde arama yapılıp yapılmayacağını belirtir.

Döndürülenler

Object[]

türündeki bu yöntemin özniteliklerini temsil eden attributeTypebir nesne dizisi döndürür.

Özel durumlar

Bu yöntem şu anda desteklenmiyor. kullanarak GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) yöntemini alın ve döndürülen GetCustomAttributes(Boolean)üzerinde öğesini çağırınMethodInfo.

Şunlara uygulanır