Freigeben über


SqlStoreConnection-Klasse

Represents a connection to an instance of SQL Server. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.

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 Class SqlStoreConnection _
    Inherits SfcConnection
'Usage
Dim instance As SqlStoreConnection
public class SqlStoreConnection : SfcConnection
public ref class SqlStoreConnection : public SfcConnection
type SqlStoreConnection =  
    class 
        inherit SfcConnection 
    end
public class SqlStoreConnection extends SfcConnection

Der SqlStoreConnection-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode SqlStoreConnection Initializes a new instance of the SqlStoreConnection class with the specified SQL connection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft ConnectionType Gets a value indicating whether the database server is part of a multi-server administration matrix. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.ConnectionType.)
Öffentliche Eigenschaft ConnectTimeout Gets or sets the timeout interval, in seconds. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.ConnectTimeout.)
Öffentliche Eigenschaft IsForceDisconnected Gets a value indicating whether the connection has been forcibly disconnected. (Geerbt von SfcConnection.)
Öffentliche Eigenschaft IsOpen Gets a value indicating whether the connection is currently open. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.IsOpen.)
Öffentliche Eigenschaft ServerConnection Gets the Server Connection for the SqlStoreConnection. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.
Öffentliche Eigenschaft ServerInstance Gets or sets the name of the server. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.ServerInstance.)
Öffentliche Eigenschaft ServerVersion Gets the version number of the connected server. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.ServerVersion.)
Öffentliche Eigenschaft StatementTimeout Gets or sets the number of seconds a statement is given to run before failing with a time-out error. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.StatementTimeout.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Connect Attempts to connect to the server. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.Connect().)
Öffentliche Methode Copy Returns a copy of the server connection object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.Copy().)
Öffentliche Methode Disconnect Attempts to disconnect from the server. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.Disconnect().)
Öffentliche Methode Equals(Object) (Geerbt von Object.)
Öffentliche Methode Equals(SfcConnection) Determines whether the specified server connection is equal to the current SqlStoreConnection object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.Equals(SfcConnection).)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode ForceDisconnected Enforces a server disconnect and ensures that connection cannot be re-opened again. (Geerbt von SfcConnection.)
Öffentliche Methode GetHashCode Returns the hash code for this instance. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Überschreibt SfcConnection.GetHashCode().)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToEnumeratorObject Returns an enumerator object. (Überschreibt SfcConnection.ToEnumeratorObject().)
Ö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.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Sdk.Sfc-Namespace