Share via


GenericTypeParameterBuilder.GetCustomAttributes 方法

定義

不支援不完整的泛型型別參數。

多載

GetCustomAttributes(Boolean)

不支援不完整的泛型型別參數。

GetCustomAttributes(Type, Boolean)

不支援不完整的泛型型別參數。

GetCustomAttributes(Boolean)

來源:
GenericTypeParameterBuilder.cs

不支援不完整的泛型型別參數。

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

參數

inherit
Boolean

指定是否要搜尋這個成員的繼承鏈結以尋找屬性。

傳回

Object[]

不支援不完整的泛型型別參數。

例外狀況

在所有情況下。

備註

這個方法不支援不完整的泛型型別參數。 從已完成的泛型型別定義擷取型別參數,然後在擷取的類型上使用反映。

適用於

GetCustomAttributes(Type, Boolean)

來源:
GenericTypeParameterBuilder.cs

不支援不完整的泛型型別參數。

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

參數

attributeType
Type

要搜尋的屬性類型。 只會傳回可指派給這種類型的屬性。

inherit
Boolean

指定是否要搜尋這個成員的繼承鏈結以尋找屬性。

傳回

Object[]

不支援不完整的泛型型別參數。

例外狀況

在所有情況下。

備註

這個方法不支援不完整的泛型型別參數。 從已完成的泛型型別定義擷取型別參數,然後在擷取的類型上使用反映。

適用於