Share via


ISfcConnection-Schnittstelle

Defines high-level properties and methods for server connections.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Interface ISfcConnection
'Usage
Dim instance As ISfcConnection
public interface ISfcConnection
public interface class ISfcConnection
type ISfcConnection =  interface end
public interface ISfcConnection

Der ISfcConnection-Typ macht folgende Elemente verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft IsForceDisconnected Gets a Boolean value that specifies whether the connection was 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 for the connection.
Öffentliche Eigenschaft ServerVersion Gets the SQL Server version of the target server.

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 ForceDisconnected Forces a disconnect from the instance of SQL Server.
Öffentliche Methode ToEnumeratorObject Indicates the specified object from the enumeration. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. 

Zum Anfang