RuntimeClientCompileScriptAsync Method |
Version 130.1.90
Compiles expression.
Namespace: CefSharp.DevTools.RuntimeAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<CompileScriptResponse> CompileScriptAsync(
string expression,
string sourceURL,
bool persistScript,
int? executionContextId = null
)
public:
Task<CompileScriptResponse^>^ CompileScriptAsync(
String^ expression,
String^ sourceURL,
bool persistScript,
Nullable<int> executionContextId = nullptr
)
Parameters
- expression String
- Expression to compile.
- sourceURL String
- Source url to be set for the script.
- persistScript Boolean
- Specifies whether the compiled script should be persisted.
- executionContextId NullableInt32 (Optional)
- Specifies in which execution context to perform script run. If the parameter is omitted theevaluation will be performed in the context of the inspected page.
Return Value
TaskCompileScriptResponsereturns System.Threading.Tasks.Task<CompileScriptResponse>
See Also