IScriptingService.OpenSession(IScriptCollectorInfo, IContext) Method

Definition

Sets a method that opens a new Scripting session.

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

Parameters

collectorInfo
IScriptCollectorInfo

An IScriptCollectorInfo interface that represents the ScriptCollector.

context
IContext

An IContext interface that displays the context for the newly opened session.

Returns

A method that opens a new scripting session.

Applies to