ISfcConnection 接口

定义用于服务器连接的高级属性和方法。

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
Public Interface ISfcConnection
用法
Dim instance As ISfcConnection
public interface ISfcConnection
public interface class ISfcConnection
type ISfcConnection =  interface end
public interface ISfcConnection

ISfcConnection 类型公开以下成员。

属性

  名称 说明
公共属性 IsForceDisconnected 获取一个 Boolean 值,该值指定是否强制断开了连接。
公共属性 IsOpen 获取一个值,该值指示连接是否已打开。
公共属性 ServerInstance 获取或设置连接的目标服务器名称。
公共属性 ServerVersion 获取目标服务器的 SQL Server 版本。

顶部

方法

  名称 说明
公共方法 Connect 连接到目标服务器。
公共方法 Copy 复制连接对象。
公共方法 Disconnect 断开与目标服务器的连接。
公共方法 ForceDisconnected 从 SQL Server 实例强制断开连接。
公共方法 ToEnumeratorObject 指示枚举中的指定对象。不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。  

顶部

请参阅

参考

Microsoft.SqlServer.Management.Common 命名空间