IScriptingService.OpenSession(IScriptCollectorInfo, IContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Returns
A method that opens a new scripting session.