ISfcConnection 接口

Defines high-level properties and methods for server connections.

命名空间:  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 Gets a Boolean value that specifies whether the connection was forcibly disconnected.
公共属性 IsOpen Gets a value indicating whether the connection is open.
公共属性 ServerInstance Gets or sets the name of the target server for the connection.
公共属性 ServerVersion Gets the SQL Server version of the target server.

页首

方法

  名称 说明
公共方法 Connect Connects to the target server.
公共方法 Copy Copies the connection object.
公共方法 Disconnect Disconnects from the target server.
公共方法 ForceDisconnected Forces a disconnect from the instance of SQL Server.
公共方法 ToEnumeratorObject Indicates the specified object from the enumeration. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 

页首

请参阅

参考

Microsoft.SqlServer.Management.Common 命名空间