Freigeben über


SfcConnection-Klasse

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

Vererbungshierarchie

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

Der SfcConnection-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Geschützte Methode SfcConnection Initializes a new instance of the SfcConnection class.

Zum Anfang

Eigenschaften

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

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Connect Connects to the target server.
Öffentliche Methode Copy Copies the connection object.
Öffentliche Methode Disconnect Disconnects from the target server.
Öffentliche Methode Equals(Object) (Geerbt von Object.)
Öffentliche Methode Equals(SfcConnection) Determines whether the specified connection object is equal to the current connection object.
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode ForceDisconnected Enforces a server disconnect and ensures that connection cannot be re-opened again.
Öffentliche Methode GetHashCode Returns the hash code for this connection. (Überschreibt Object. . :: . .GetHashCode() () () ().)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToEnumeratorObject Returns an enumerator object.
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.