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