IWebViewCreateJavascriptExecutionContext Method (JavascriptExecutionContextMethod)Awesomium.NET 1.7.6Awesomium.NET
Creates an asynchronous Javascript Execution Context and executes the method associated with it.

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 1.7.6.0
Syntax

void CreateJavascriptExecutionContext(
	JavascriptExecutionContextMethod method
)

Parameters

method
Type: Awesomium.CoreJavascriptExecutionContextMethod
The method associated with the created Javascript Execution Context.
Exceptions

ExceptionCondition
InvalidOperationException You cannot create an asynchronous Javascript Execution Context from within a synchronous Javascript Execution Context.
Remarks

This method creates an asynchronous Javascript Execution Context and immediately invokes the specified method that is executed within the context.

The major features provided by an asynchronous Javascript Execution Context to the associated routine, are:

Note Note
Most of the Javascript-related events of a view and all handlers of a custom JavaScript method, are already executed in a Javascript Execution Context.
Caution note Caution
Javascript-related events or a custom JavaScript method handlers that are called synchronously, are executed in a synchronous Javascript Execution Context. Creating an asynchronous Javascript Execution Context from within a synchronous one, is not allowed.

For details, read the following articles:

See Also

Reference

Other Resources