SqlStoreConnection 类

Represents a connection to an instance of SQL Server. 不要在您的代码中直接引用此成员。它支持 SQL 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 Class SqlStoreConnection _
    Inherits SfcConnection
用法
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

SqlStoreConnection 类型公开以下成员。

构造函数

  名称 说明
公共方法 SqlStoreConnection Initializes a new instance of the SqlStoreConnection class with the specified SQL connection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。

页首

属性

  名称 说明
公共属性 ConnectionType Gets a value indicating whether the database server is part of a multi-server administration matrix. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.ConnectionType。)
公共属性 ConnectTimeout Gets or sets the timeout interval, in seconds. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.ConnectTimeout。)
公共属性 IsForceDisconnected Gets a value indicating whether the connection has been forcibly disconnected. (从 SfcConnection 继承。)
公共属性 IsOpen Gets a value indicating whether the connection is currently open. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.IsOpen。)
公共属性 ServerConnection Gets the Server Connection for the SqlStoreConnection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。
公共属性 ServerInstance Gets or sets the name of the server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.ServerInstance。)
公共属性 ServerVersion Gets the version number of the connected server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.ServerVersion。)
公共属性 StatementTimeout Gets or sets the number of seconds a statement is given to run before failing with a time-out error. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.StatementTimeout。)

页首

方法

  名称 说明
公共方法 Connect Attempts to connect to the server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.Connect()。)
公共方法 Copy Returns a copy of the server connection object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.Copy()。)
公共方法 Disconnect Attempts to disconnect from the server. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.Disconnect()。)
公共方法 Equals(Object) (从 Object 继承。)
公共方法 Equals(SfcConnection) Determines whether the specified server connection is equal to the current SqlStoreConnection object. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.Equals(SfcConnection)。)
受保护方法 Finalize (从 Object 继承。)
公共方法 ForceDisconnected Enforces a server disconnect and ensures that connection cannot be re-opened again. (从 SfcConnection 继承。)
公共方法 GetHashCode Returns the hash code for this instance. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 (覆盖 SfcConnection.GetHashCode()。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToEnumeratorObject Returns an enumerator object. (覆盖 SfcConnection.ToEnumeratorObject()。)
公共方法 ToString (从 Object 继承。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.SqlServer.Management.Sdk.Sfc 命名空间