ISqlScriptWindowWithConnection.SetConnection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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)
参数
- group
- 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)
参数
- conn
- 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)
参数
- group
- UIConnectionGroupInfo
- 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)
参数
- conn
- UIConnectionInfo
- liveConn
- IDbConnection