JSVariableField.GetCustomAttributes(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個陣列,包含附加在此欄位的自訂屬性。
此 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[]
一個包含附加於此欄位的自訂屬性的陣列,或者如果沒有屬性,則是一個元素為零的陣列。