ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
IScriptableObject Interface
IScriptableObject Methods
OnExposedToScriptCode Method

# 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.5.0
Syntax
C#
VB
C++
F#
Copy

    void OnExposedToScriptCode(
    	ScriptEngine engine
    )

    Sub OnExposedToScriptCode (
    	engine As ScriptEngine
    )

    void OnExposedToScriptCode(
    	ScriptEngine^ engine
    )

    abstract OnExposedToScriptCode :
            engine : ScriptEngine -> unit

#### 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

#### Reference

IScriptableObject Interface
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft