ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8Script Class
V8Script Methods
Dispose Method

# V8ScriptDispose Method

Releases all resources used by the compiled script.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public abstract void Dispose()

    Public MustOverride Sub Dispose

    public:
    virtual void Dispose() abstract

    abstract Dispose : unit -> unit

#### Implements

IDisposableDispose
Remarks
Call Dispose() when you are finished using the compiled script. Dispose() leaves the compiled script in an unusable state. After calling Dispose(), you must release all references to the compiled script so the garbage collector can reclaim the memory that the compiled script was occupying.
See Also

#### Reference

V8Script Class
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft