Initializes a new instance of the SqlConnectionInfo class.
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)
语法
声明
Public Sub New ( _
serverName As String, _
userName As String, _
password As String _
)
public SqlConnectionInfo (
string serverName,
string userName,
string password
)
public:
SqlConnectionInfo (
String^ serverName,
String^ userName,
String^ password
)
public SqlConnectionInfo (
String serverName,
String userName,
String password
)
public function SqlConnectionInfo (
serverName : String,
userName : String,
password : String
)
参数
- serverName
A String object value that specifies the instance of SQL Server.
- userName
A String object value that specifies the user who is connected to the instance of SQL Server.
- password
A String object value that specifies the password supplied by the user to connect to the instance of SQL Server.
备注
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。
平台
开发平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
目标平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
请参阅
参考
SqlConnectionInfo Class
SqlConnectionInfo Members
Microsoft.SqlServer.Management.Common Namespace