JSConstructor.GetCustomAttributes 方法

定義

傳回陣列,這個陣列包含已附加至這個建構函式的自訂屬性。

多載

GetCustomAttributes(Boolean)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

傳回陣列,這個陣列包含已附加至這個建構函式的自訂屬性。

GetCustomAttributes(Type, Boolean)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

傳回陣列,這個陣列包含已附加至這個建構函式的自訂屬性,只搜尋指定之型別的屬性。

GetCustomAttributes(Boolean)

傳回陣列,這個陣列包含已附加至這個建構函式的自訂屬性。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

true 表示搜尋這個成員的繼承階層架構以尋找屬性。

傳回

Object[]

已附加至這個方法之自訂屬性的陣列,如果沒有自訂屬性則為零元素的陣列。

另請參閱

適用於

GetCustomAttributes(Type, Boolean)

傳回陣列,這個陣列包含已附加至這個建構函式的自訂屬性,只搜尋指定之型別的屬性。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ t, bool inherit);
public override object[] GetCustomAttributes (Type t, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (t As Type, inherit As Boolean) As Object()

參數

t
Type

要搜尋的屬性類型。

inherit
Boolean

true 表示搜尋這個成員的繼承階層架構以尋找屬性。

傳回

Object[]

無元素的 Object 物件陣列。

另請參閱

適用於