ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.Windows.Core
WindowsScriptEngine Class
WindowsScriptEngine Methods
CheckAccess Method
CollectGarbage Method
Dispose Method
GetStackTrace Method
Interrupt Method
VerifyAccess Method

# WindowsScriptEngineCollectGarbage Method

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

    public override void CollectGarbage(
    	bool exhaustive
    )

    Public Overrides Sub CollectGarbage (
    	exhaustive As Boolean
    )

    public:
    virtual void CollectGarbage(
    	bool exhaustive
    ) override

    abstract CollectGarbage :
            exhaustive : bool -> unit
    override 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

WindowsScriptEngine Class
Microsoft.ClearScript.Windows.Core Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft