ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ScriptEngine Class
ScriptEngine Methods
Dispose Method
Dispose Method
Dispose(Boolean) Method

# ScriptEngineDispose(Boolean) Method

Releases the unmanaged resources used by the script engine and optionally releases the managed resources.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    protected virtual void Dispose(
    	bool disposing
    )

    Protected Overridable Sub Dispose (
    	disposing As Boolean
    )

    protected:
    virtual void Dispose(
    	bool disposing
    )

    abstract Dispose :
            disposing : bool -> unit
    override Dispose :
            disposing : bool -> unit

#### Parameters

disposing Boolean
  True to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks
This method is called by the public Dispose method and the Finalize method. Dispose invokes the protected Dispose(Boolean) method with the disposing parameter set to true. Finalize invokes Dispose(Boolean) with disposing set to false.
See Also

#### Reference

ScriptEngine Class
Dispose Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft