Share via


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

See Also

Reference

ScriptAndResultsEditorControl Class

SetConnection Overload

Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace