Share via


SfcConnection Class

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

Inheritance Hierarchy

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

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public MustInherit Class SfcConnection _
    Implements ISfcConnection
'Usage
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

The SfcConnection type exposes the following members.

Constructors

  Name Description
Protected method SfcConnection Initializes a new instance of the SfcConnection class.

Top

Properties

  Name Description
Public property ConnectionType Gets the SQL Server service type of the connection.
Public property ConnectTimeout Gets or sets the connection time-out period in seconds.
Public property IsForceDisconnected Gets a value indicating whether the connection has been forcibly disconnected.
Public property IsOpen Gets a value indicating whether the connection is open.
Public property ServerInstance Gets or sets the name of the target server.
Public property ServerVersion Gets or sets the SQL Server version of the target server.
Public property StatementTimeout Gets or sets the number of seconds a statement is given to run before failing with a time-out error.

Top

Methods

  Name Description
Public method Connect Connects to the target server.
Public method Copy Copies the connection object.
Public method Disconnect Disconnects from the target server.
Public method Equals(Object) (Inherited from Object.)
Public method Equals(SfcConnection) Determines whether the specified connection object is equal to the current connection object.
Protected method Finalize (Inherited from Object.)
Public method ForceDisconnected Enforces a server disconnect and ensures that connection cannot be re-opened again.
Public method GetHashCode Returns the hash code for this connection. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToEnumeratorObject Returns an enumerator object.
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Sdk.Sfc Namespace