IScriptingService.OpenSession(IScriptCollectorInfo, IContext) 方法

定义

设置用于打开新脚本会话的方法。

public:
 Microsoft::SqlServer::Management::Scripting::IScriptingSession ^ OpenSession(Microsoft::SqlServer::Management::Scripting::IScriptCollectorInfo ^ collectorInfo, Microsoft::SqlServer::Management::Data::IContext ^ context);
public Microsoft.SqlServer.Management.Scripting.IScriptingSession OpenSession (Microsoft.SqlServer.Management.Scripting.IScriptCollectorInfo collectorInfo, Microsoft.SqlServer.Management.Data.IContext context);
abstract member OpenSession : Microsoft.SqlServer.Management.Scripting.IScriptCollectorInfo * Microsoft.SqlServer.Management.Data.IContext -> Microsoft.SqlServer.Management.Scripting.IScriptingSession
Public Function OpenSession (collectorInfo As IScriptCollectorInfo, context As IContext) As IScriptingSession

参数

collectorInfo
IScriptCollectorInfo

一个表示 ScriptCollector 的 IScriptCollectorInfo 接口。

context
IContext

一个 IContext 接口,该接口显示新打开的会话的上下文。

返回

一个用于打开新脚本会话的方法。

适用于