Share via


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

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

適用於

另請參閱