GlobalObject.CollectGarbage 方法

定义

调用垃圾回收器。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static void CollectGarbage();
[Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Global_CollectGarbage)]
public static void CollectGarbage ();
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Global_CollectGarbage)]
public static void CollectGarbage ();
[<Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Global_CollectGarbage)>]
static member CollectGarbage : unit -> unit
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Global_CollectGarbage)>]
static member CollectGarbage : unit -> unit
Public Shared Sub CollectGarbage ()
属性

适用于

另请参阅