IEngine2.Clone(AppDomain) 方法

定义

在类中实现时,创建一个在新应用程序域中运行的新的相同引擎,该引擎具有相同的编译状态和命名项。When implemented in a class, creates a new identical engine that runs in a new application domain, with the same compiled state and named items. 这未在 JScript 中实现。This is not implemented in JScript.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 Microsoft::Vsa::IVsaEngine ^ Clone(AppDomain ^ domain);
public:
 Microsoft::JScript::Vsa::IJSVsaEngine ^ Clone(AppDomain ^ domain);
public Microsoft.Vsa.IVsaEngine Clone (AppDomain domain);
public Microsoft.JScript.Vsa.IJSVsaEngine Clone (AppDomain domain);
abstract member Clone : AppDomain -> Microsoft.Vsa.IVsaEngine
abstract member Clone : AppDomain -> Microsoft.JScript.Vsa.IJSVsaEngine
Public Function Clone (domain As AppDomain) As IVsaEngine
Public Function Clone (domain As AppDomain) As IJSVsaEngine

参数

domain
AppDomain

要在其中创建新引擎的应用程序域。The application domain in which to create the new engine.

返回

IVsaEngine
IJSVsaEngine

新引擎。The new engine.

适用于

另请参阅