JSVariableField.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[]

一個包含附加於此欄位的自訂屬性的陣列,或者如果沒有屬性,則是一個元素為零的陣列。

適用於

另請參閱