Classe SfcConnection

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

Hierarquia de herança

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 (em Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintaxe

'Declaração
Public MustInherit Class SfcConnection _
    Implements ISfcConnection
'Uso
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

O tipo SfcConnection expõe os membros a seguir.

Construtores

  Nome Descrição
Método protegido SfcConnection Initializes a new instance of the SfcConnection class.

Início

Propriedades

  Nome Descrição
Propriedade pública ConnectionType Gets the SQL Server service type of the connection.
Propriedade pública ConnectTimeout Gets or sets the connection time-out period in seconds.
Propriedade pública IsForceDisconnected Gets a value indicating whether the connection has been forcibly disconnected.
Propriedade pública IsOpen Gets a value indicating whether the connection is open.
Propriedade pública ServerInstance Gets or sets the name of the target server.
Propriedade pública ServerVersion Gets or sets the SQL Server version of the target server.
Propriedade pública StatementTimeout Gets or sets the number of seconds a statement is given to run before failing with a time-out error.

Início

Métodos

  Nome Descrição
Método público Connect Connects to the target server.
Método público Copy Copies the connection object.
Método público Disconnect Disconnects from the target server.
Método público Equals(Object) (Herdado de Object.)
Método público Equals(SfcConnection) Determines whether the specified connection object is equal to the current connection object.
Método protegido Finalize (Herdado de Object.)
Método público ForceDisconnected Enforces a server disconnect and ensures that connection cannot be re-opened again.
Método público GetHashCode Returns the hash code for this connection. (Substitui Object. . :: . .GetHashCode() () () ().)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToEnumeratorObject Returns an enumerator object.
Método público ToString (Herdado de Object.)

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.