ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
IScriptEngine Interface
IScriptEngine Methods
AddCOMObject Method
AddCOMType Method
AddHostObject Method
AddHostType Method
AddHostTypes Method
AddRestrictedHostObject Method
CollectGarbage Method
Evaluate Method
EvaluateDocument Method
Execute Method
ExecuteCommand Method
ExecuteDocument Method
GetStackTrace Method
Interrupt Method
Invoke Method

# IScriptEngineCollectGarbage Method

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

    void CollectGarbage(
    	bool exhaustive
    )

    Sub CollectGarbage (
    	exhaustive As Boolean
    )

    void CollectGarbage(
    	bool exhaustive
    )

    abstract CollectGarbage :
            exhaustive : bool -> unit

#### Parameters

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

See Also

#### Reference

IScriptEngine Interface
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft