ISqlScriptWindowWithConnection.SetConnection 方法

定义

重载

SetConnection(UIConnectionGroupInfo)
SetConnection(UIConnectionInfo)
SetConnection(UIConnectionGroupInfo, IDbConnection)
SetConnection(UIConnectionInfo, IDbConnection)

SetConnection(UIConnectionGroupInfo)

public:
 void SetConnection(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ group);
public void SetConnection (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo group);
abstract member SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo -> unit
Public Sub SetConnection (group As UIConnectionGroupInfo)

参数

适用于

SetConnection(UIConnectionInfo)

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

参数

适用于

SetConnection(UIConnectionGroupInfo, IDbConnection)

public:
 void SetConnection(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionGroupInfo ^ group, System::Data::IDbConnection ^ liveConn);
public void SetConnection (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo group, System.Data.IDbConnection liveConn);
abstract member SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionGroupInfo * System.Data.IDbConnection -> unit
Public Sub SetConnection (group As UIConnectionGroupInfo, liveConn As IDbConnection)

参数

liveConn
IDbConnection

适用于

SetConnection(UIConnectionInfo, IDbConnection)

public:
 void SetConnection(Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ conn, System::Data::IDbConnection ^ liveConn);
public void SetConnection (Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo conn, System.Data.IDbConnection liveConn);
abstract member SetConnection : Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo * System.Data.IDbConnection -> unit
Public Sub SetConnection (conn As UIConnectionInfo, liveConn As IDbConnection)

参数

liveConn
IDbConnection

适用于