Класс SfcConnection
Abstract class from which SqlStoreConnection is derived. Represents a connection to a server.
Иерархия наследования
System.Object
Microsoft.SqlServer.Management.Sdk.Sfc.SfcConnection
Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection
Пространство имен: Microsoft.SqlServer.Management.Sdk.Sfc
Сборка: Microsoft.SqlServer.Management.Sdk.Sfc (в Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Синтаксис
'Декларация
Public MustInherit Class SfcConnection _
Implements ISfcConnection
'Применение
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
Тип SfcConnection обеспечивает доступ к следующим элементам.
Конструкторы
Имя | Описание | |
---|---|---|
SfcConnection | Initializes a new instance of the SfcConnection class. |
В начало
Свойства
Имя | Описание | |
---|---|---|
ConnectionType | Gets the SQL Server service type of the connection. | |
ConnectTimeout | Gets or sets the connection time-out period in seconds. | |
IsForceDisconnected | Gets a value indicating whether the connection has been forcibly disconnected. | |
IsOpen | Gets a value indicating whether the connection is open. | |
ServerInstance | Gets or sets the name of the target server. | |
ServerVersion | Gets or sets the SQL Server version of the target server. | |
StatementTimeout | Gets or sets the number of seconds a statement is given to run before failing with a time-out error. |
В начало
Методы
Имя | Описание | |
---|---|---|
Connect | Connects to the target server. | |
Copy | Copies the connection object. | |
Disconnect | Disconnects from the target server. | |
Equals(Object) | (Производный от Object.) | |
Equals(SfcConnection) | Determines whether the specified connection object is equal to the current connection object. | |
Finalize | (Производный от Object.) | |
ForceDisconnected | Enforces a server disconnect and ensures that connection cannot be re-opened again. | |
GetHashCode | Returns the hash code for this connection. (Переопределяет Object.GetHashCode().) | |
GetType | (Производный от Object.) | |
MemberwiseClone | (Производный от Object.) | |
ToEnumeratorObject | Returns an enumerator object. | |
ToString | (Производный от Object.) |
В начало
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.