Share via


Classe SfcConnection

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Public MustInherit Class SfcConnection _
    Implements ISfcConnection
'Utilisation
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

Le type SfcConnection expose les membres suivants.

Constructeurs

  Nom Description
Méthode protégée SfcConnection Initializes a new instance of the SfcConnection class.

Haut de la page

Propriétés

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

Haut de la page

Méthodes

  Nom Description
Méthode publique Connect Connects to the target server.
Méthode publique Copy Copies the connection object.
Méthode publique Disconnect Disconnects from the target server.
Méthode publique Equals(Object) (hérité de Object.)
Méthode publique Equals(SfcConnection) Determines whether the specified connection object is equal to the current connection object.
Méthode protégée Finalize (hérité de Object.)
Méthode publique ForceDisconnected Enforces a server disconnect and ensures that connection cannot be re-opened again.
Méthode publique GetHashCode Returns the hash code for this connection. (remplace Object. . :: . .GetHashCode() () () ().)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToEnumeratorObject Returns an enumerator object.
Méthode publique ToString (hérité de Object.)

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.