ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ScriptEngine Class
ScriptEngine Methods
AddCOMObject Method
AddCOMType Method
AddHostObject Method
AddHostType Method
AddHostTypes Method
AddRestrictedHostObject Method
CollectGarbage Method
Dispose Method
Evaluate Method
EvaluateDocument Method
Execute Method
ExecuteCommand Method
ExecuteDocument Method
Finalize Method
GetStackTrace Method
Interrupt Method
Invoke Method

# ScriptEngineCollectGarbage Method

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

    public abstract void CollectGarbage(
    	bool exhaustive
    )

    Public MustOverride Sub CollectGarbage (
    	exhaustive As Boolean
    )

    public:
    virtual void CollectGarbage(
    	bool exhaustive
    ) abstract

    abstract CollectGarbage :
            exhaustive : bool -> unit

#### Parameters

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

#### Implements

IScriptEngineCollectGarbage(Boolean)
See Also

#### Reference

ScriptEngine Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft