Конструктор WMIConn (Boolean, String, String, String, String)
Initializes a new instance of the WMIConn class, initializing the authentication mode, user name, password, server, and namespace.
Пространство имен: Microsoft.SqlServer.Dts.ManagedConnections
Сборка: Microsoft.SqlServer.ManagedConnections (в Microsoft.SqlServer.ManagedConnections.dll)
Синтаксис
'Декларация
Public Sub New ( _
bUseNtAuth As Boolean, _
UserName As String, _
Password As String, _
ServerName As String, _
Namespace As String _
)
'Применение
Dim bUseNtAuth As Boolean
Dim UserName As String
Dim Password As String
Dim ServerName As String
Dim Namespace As String
Dim instance As New WMIConn(bUseNtAuth, _
UserName, Password, ServerName, Namespace)
public WMIConn(
bool bUseNtAuth,
string UserName,
string Password,
string ServerName,
string Namespace
)
public:
WMIConn(
bool bUseNtAuth,
String^ UserName,
String^ Password,
String^ ServerName,
String^ Namespace
)
new :
bUseNtAuth:bool *
UserName:string *
Password:string *
ServerName:string *
Namespace:string -> WMIConn
public function WMIConn(
bUseNtAuth : boolean,
UserName : String,
Password : String,
ServerName : String,
Namespace : String
)
Параметры
- bUseNtAuth
Тип: System.Boolean
A Boolean that specifies whether the connection manager uses Windows Authentication. true if Windows Authentication is used.
- UserName
Тип: System.String
The user name that the connection manager uses.
- Password
Тип: System.String
The password that the connection manager uses.
- ServerName
Тип: System.String
The name of the server to connect to as a WMI connection.
- Namespace
Тип: System.String
The namespace that the connection manager uses.
См. также
Справочник
Пространство имен Microsoft.SqlServer.Dts.ManagedConnections