IJSVsaSite 接口

定义

警告

此 API 现已过时。

启用主机与脚本引擎之间的通信。Enables communication between the host and the script engine. 该接口由主机实现。This interface is implemented by the host.

public interface class IJSVsaSite
[System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("605A62B5-3BA8-49E0-A056-0A6A7A5846A3")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IJSVsaSite
type IJSVsaSite = interface
Public Interface IJSVsaSite
派生
属性

方法

GetCompiledState(Byte[], Byte[])

获取脚本引擎的已编译状态和关联的调试信息(可选)。Gets the compiled state of a script engine, and, optionally, associated debugging information.

GetEventSourceInstance(String, String)

获取对先前使用 AddEventSource(String, String) 方法添加到脚本引擎中的事件源的引用。Gets a reference to an event source previously added to a script engine using the AddEventSource(String, String) method.

GetGlobalInstance(String)

获取对全局项的引用,例如主机提供的应用程序对象。Gets a reference to a global item, such as the host-provided application object.

Notify(String, Object)

通知主机有关由 .NET 脚本引擎生成的事件。Notifies the host about events generated by the .NET script engine.

OnCompilerError(IJSVsaError)

通知主机如何对脚本引擎遇到的编译器错误作出响应。Notifies the host about how to respond to compiler errors encountered by the script engine.

适用于