SqlConnectionInfo 建構函式

定義

多載

SqlConnectionInfo()

public SqlConnectionInfo();
Public Sub New ()

適用於

SqlConnectionInfo(SqlConnectionInfo)

public SqlConnectionInfo(Microsoft.SqlServer.Management.Common.SqlConnectionInfo conn);
new Microsoft.SqlServer.Management.Common.SqlConnectionInfo : Microsoft.SqlServer.Management.Common.SqlConnectionInfo -> Microsoft.SqlServer.Management.Common.SqlConnectionInfo
Public Sub New (conn As SqlConnectionInfo)

參數

適用於

SqlConnectionInfo(String)

public SqlConnectionInfo(string serverName);
new Microsoft.SqlServer.Management.Common.SqlConnectionInfo : string -> Microsoft.SqlServer.Management.Common.SqlConnectionInfo
Public Sub New (serverName As String)

參數

serverName
String

適用於

SqlConnectionInfo(ServerConnection, ConnectionType)

從 ServerConnection 物件初始化 SqlConnectionInfo

public SqlConnectionInfo(Microsoft.SqlServer.Management.Common.ServerConnection serverConnection, Microsoft.SqlServer.Management.Common.ConnectionType connectionType);
new Microsoft.SqlServer.Management.Common.SqlConnectionInfo : Microsoft.SqlServer.Management.Common.ServerConnection * Microsoft.SqlServer.Management.Common.ConnectionType -> Microsoft.SqlServer.Management.Common.SqlConnectionInfo
Public Sub New (serverConnection As ServerConnection, connectionType As ConnectionType)

參數

serverConnection
ServerConnection
connectionType
ConnectionType

適用於

SqlConnectionInfo(String, String, String)

public SqlConnectionInfo(string serverName, string userName, string password);
new Microsoft.SqlServer.Management.Common.SqlConnectionInfo : string * string * string -> Microsoft.SqlServer.Management.Common.SqlConnectionInfo
Public Sub New (serverName As String, userName As String, password As String)

參數

serverName
String
userName
String
password
String

適用於