ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8Runtime Class
V8Runtime Methods
BeginCpuProfile Method
CollectCpuProfileSample Method
CollectGarbage Method
Compile Method
CompileDocument Method
CreateScriptEngine Method
Dispose Method
EndCpuProfile Method
GetHeapInfo Method
WriteHeapSnapshot Method

# V8RuntimeCollectGarbage Method

Performs garbage collection.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public void CollectGarbage(
    	bool exhaustive
    )

    Public Sub CollectGarbage (
    	exhaustive As Boolean
    )

    public:
    void CollectGarbage(
    	bool exhaustive
    )

    member CollectGarbage :
            exhaustive : bool -> unit

#### Parameters

exhaustive Boolean
  True to perform exhaustive garbage collection, false to favor speed over completeness.

See Also

#### Reference

V8Runtime Class
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft