ServerConnection Constructor (SqlConnection)

Initializes a new instance of the ServerConnection class with the specified connection parameters.

命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

语法

声明
Public Sub New ( _
    sqlConnection As SqlConnection _
)
public ServerConnection (
    SqlConnection sqlConnection
)
public:
ServerConnection (
    SqlConnection^ sqlConnection
)
public ServerConnection (
    SqlConnection sqlConnection
)
public function ServerConnection (
    sqlConnection : SqlConnection
)

参数

  • sqlConnection
    A SqlConnection system object that specifies connection parameters associated with the referenced connection.

备注

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

ServerConnection Class
ServerConnection Members
Microsoft.SqlServer.Management.Common Namespace

其他资源

Connecting to an Instance of SQL Server