ScriptAndResultsEditorControl.SetConnection Method (UIConnectionGroupInfo, IDbConnection)
Enables stamp with live connection.
Namespace: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly: SQLEditors (in SQLEditors.dll)
Syntax
'Declaration
Public Overridable Sub SetConnection ( _
connectionInfoList As UIConnectionGroupInfo, _
liveConnection As IDbConnection _
)
'Usage
Dim instance As ScriptAndResultsEditorControl
Dim connectionInfoList As UIConnectionGroupInfo
Dim liveConnection As IDbConnection
instance.SetConnection(connectionInfoList, _
liveConnection)
public virtual void SetConnection(
UIConnectionGroupInfo connectionInfoList,
IDbConnection liveConnection
)
public:
virtual void SetConnection(
UIConnectionGroupInfo^ connectionInfoList,
IDbConnection^ liveConnection
)
abstract SetConnection :
connectionInfoList:UIConnectionGroupInfo *
liveConnection:IDbConnection -> unit
override SetConnection :
connectionInfoList:UIConnectionGroupInfo *
liveConnection:IDbConnection -> unit
public function SetConnection(
connectionInfoList : UIConnectionGroupInfo,
liveConnection : IDbConnection
)
Parameters
- connectionInfoList
Type: Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo
The UIConnectionGroupInfo object for the connection.
- liveConnection
Type: System.Data.IDbConnection
A live IDbConnection object to the servers indicated by the connectionInfo.
See Also
Reference
ScriptAndResultsEditorControl Class
Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace