ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8ScriptEngine Class
V8ScriptEngine Methods
CompileDocument Method
CompileDocument(String) Method
CompileDocument(String, DocumentCategory) Method
CompileDocument(String, DocumentCategory, DocumentContextCallback) Method
CompileDocument(String, V8CacheKind, Byte[]) Method
CompileDocument(String, DocumentCategory, V8CacheKind, Byte[]) Method
CompileDocument(String, V8CacheKind, Byte[], Boolean) Method
CompileDocument(String, V8CacheKind, Byte[], V8CacheResult) Method
CompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte[]) Method
CompileDocument(String, DocumentCategory, V8CacheKind, Byte[], Boolean) Method
CompileDocument(String, DocumentCategory, V8CacheKind, Byte[], V8CacheResult) Method
CompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte[], Boolean) Method
CompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte[], V8CacheResult) Method

# V8ScriptEngineCompileDocument Method

Overload List

| Name | Description
--- | --- | ---
| CompileDocument(String) | Loads and compiles a script document.
| CompileDocument(String, DocumentCategory) | Loads and compiles a document with the specified category.
| CompileDocument(String, DocumentCategory, DocumentContextCallback) | Loads and compiles a document with the specified category and context callback.
| CompileDocument(String, V8CacheKind, Byte) | Loads and compiles a script document, generating cache data for accelerated recompilation.
| CompileDocument(String, DocumentCategory, V8CacheKind, Byte) | Loads and compiles a document with the specified category, generating cache data for accelerated recompilation.
| CompileDocument(String, V8CacheKind, Byte, Boolean) | Loads and compiles a script document, consuming previously generated cache data.
| CompileDocument(String, V8CacheKind, Byte, V8CacheResult) | Loads and compiles a script document, consuming previously generated cache data and updating it if necessary.
| CompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte) | Loads and compiles a document with the specified category and context callback, generating cache data for accelerated recompilation.
| CompileDocument(String, DocumentCategory, V8CacheKind, Byte, Boolean) | Loads and compiles a document with the specified category, consuming previously generated cache data.
| CompileDocument(String, DocumentCategory, V8CacheKind, Byte, V8CacheResult) | Loads and compiles a document with the specified category, consuming previously generated cache data and updating it if necessary.
| CompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte, Boolean) | Loads and compiles a document with the specified category and context callback, consuming previously generated cache data.
| CompileDocument(String, DocumentCategory, DocumentContextCallback, V8CacheKind, Byte, V8CacheResult) | Loads and compiles a document with the specified category and context callback, consuming previously generated cache data and updating it if necessary.

Top
See Also

#### Reference

V8ScriptEngine Class
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft