ObjectPrototype.propertyIsEnumerable(Object, Object) 方法

定義

判斷指定物件的指定屬性是否可枚舉。

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

public:
 static bool propertyIsEnumerable(System::Object ^ thisob, System::Object ^ name);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Object_propertyIsEnumerable)]
public static bool propertyIsEnumerable(object thisob, object name);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Object_propertyIsEnumerable)>]
static member propertyIsEnumerable : obj * obj -> bool
Public Shared Function propertyIsEnumerable (thisob As Object, name As Object) As Boolean

參數

thisob
Object

這個方法作用的對象。

name
Object

要測試的屬性。

傳回

truename 是可枚舉性質;否則, false

屬性

適用於