SfcConnection 类

Abstract class from which SqlStoreConnection is derived. Represents a connection to a server.

继承层次结构

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc..::..SfcConnection
    Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SqlStoreConnection

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

语法

声明
Public MustInherit Class SfcConnection _
    Implements ISfcConnection
用法
Dim instance As SfcConnection
public abstract class SfcConnection : ISfcConnection
public ref class SfcConnection abstract : ISfcConnection
[<AbstractClassAttribute>]
type SfcConnection =  
    class
        interface ISfcConnection
    end
public abstract class SfcConnection implements ISfcConnection

SfcConnection 类型公开以下成员。

构造函数

  名称 说明
受保护方法 SfcConnection Initializes a new instance of the SfcConnection class.

页首

属性

  名称 说明
公共属性 ConnectionType Gets the SQL Server service type of the connection.
公共属性 ConnectTimeout Gets or sets the connection time-out period in seconds.
公共属性 IsForceDisconnected Gets a value indicating whether the connection has been forcibly disconnected.
公共属性 IsOpen Gets a value indicating whether the connection is open.
公共属性 ServerInstance Gets or sets the name of the target server.
公共属性 ServerVersion Gets or sets the SQL Server version of the target server.
公共属性 StatementTimeout Gets or sets the number of seconds a statement is given to run before failing with a time-out error.

页首

方法

  名称 说明
公共方法 Connect Connects to the target server.
公共方法 Copy Copies the connection object.
公共方法 Disconnect Disconnects from the target server.
公共方法 Equals(Object) (从 Object 继承。)
公共方法 Equals(SfcConnection) Determines whether the specified connection object is equal to the current connection object.
受保护方法 Finalize (从 Object 继承。)
公共方法 ForceDisconnected Enforces a server disconnect and ensures that connection cannot be re-opened again.
公共方法 GetHashCode Returns the hash code for this connection. (覆盖 Object. . :: . .GetHashCode() () () ()。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToEnumeratorObject Returns an enumerator object.
公共方法 ToString (从 Object 继承。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。