Click or drag to resize

IScriptableObjectOnExposedToScriptCode Method

Notifies the host object that it has been exposed to script code.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
void OnExposedToScriptCode(
	ScriptEngine engine
)

Parameters

engine  ScriptEngine
The script engine in which the host object was exposed.
Remarks
This method may be called more than once for a given host object. The object may be exposed in multiple script engines or many times in one script engine. Implementers should avoid expensive operations within this method, or cache the results of such operations for efficient retrieval during subsequent invocations.
See Also