ScriptAndResultsEditorControl.SetConnection 方法

定义

设置连接。

重载

SetConnection(UIConnectionGroupInfo)

将连接上下文与脚本编辑器相关联。

SetConnection(UIConnectionInfo)

将连接与脚本相关联。

SetConnection(UIConnectionGroupInfo, IDbConnection)

对实时连接启用时间戳。

SetConnection(UIConnectionInfo, IDbConnection)

启用用于实时连接的时间戳

SetConnection(UIConnectionGroupInfo)

将连接上下文与脚本编辑器相关联。

public:
 virtual void SetConnection(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList);
public virtual void SetConnection (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList);
abstract member SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo -> unit
override this.SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo -> unit
Public Overridable Sub SetConnection (connectionInfoList As UIConnectionGroupInfo)

参数

connectionInfoList
UIConnectionGroupInfo

作为 UIConnectionGroupInfo 对象的编辑器连接上下文。

实现

适用于

SetConnection(UIConnectionInfo)

将连接与脚本相关联。

public:
 virtual void SetConnection(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ conn);
public virtual void SetConnection (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo conn);
abstract member SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo -> unit
override this.SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo -> unit
Public Overridable Sub SetConnection (conn As UIConnectionInfo)

参数

实现

适用于

SetConnection(UIConnectionGroupInfo, IDbConnection)

对实时连接启用时间戳。

public:
 virtual void SetConnection(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ connectionInfoList, System::Data::IDbConnection ^ liveConnection);
public virtual void SetConnection (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo connectionInfoList, System.Data.IDbConnection liveConnection);
abstract member SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> unit
override this.SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> unit
Public Overridable Sub SetConnection (connectionInfoList As UIConnectionGroupInfo, liveConnection As IDbConnection)

参数

connectionInfoList
UIConnectionGroupInfo

该连接的 UIConnectionGroupInfo 对象。

liveConnection
IDbConnection

针对 connectionInfo 所指示的服务器的一个实时 IDbConnection 对象。

实现

适用于

SetConnection(UIConnectionInfo, IDbConnection)

启用用于实时连接的时间戳

public:
 virtual void SetConnection(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ connectionInfo, System::Data::IDbConnection ^ liveConnection);
public virtual void SetConnection (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo connectionInfo, System.Data.IDbConnection liveConnection);
abstract member SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> unit
override this.SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> unit
Public Overridable Sub SetConnection (connectionInfo As UIConnectionInfo, liveConnection As IDbConnection)

参数

connectionInfo
UIConnectionInfo

该连接的 UIConnectionInfo 对象。

liveConnection
IDbConnection

由 connectionInfo 指示的服务器的实时 IDbConnection 对象。

实现

适用于