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

一个数组,其中包含附加到此字段的自定义特性,或者,如果没有任何自定义特性,则为包含零个元素的数组。

适用于

另请参阅