Partager via


WMIConn Constructor (Boolean, String, String, String, String)

Initializes a new instance of the WMIConn class, initializing the authentication mode, user name, password, server, and namespace.

Espace de noms: Microsoft.SqlServer.Dts.ManagedConnections
Assembly: Microsoft.SqlServer.ManagedConnections (in microsoft.sqlserver.managedconnections.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    bUseNtAuth As Boolean, _
    UserName As String, _
    Password As String, _
    ServerName As String, _
    Namespace As String _
)
public WMIConn (
    bool bUseNtAuth,
    string UserName,
    string Password,
    string ServerName,
    string Namespace
)
public:
WMIConn (
    bool bUseNtAuth, 
    String^ UserName, 
    String^ Password, 
    String^ ServerName, 
    String^ Namespace
)
public WMIConn (
    boolean bUseNtAuth, 
    String UserName, 
    String Password, 
    String ServerName, 
    String Namespace
)
public function WMIConn (
    bUseNtAuth : boolean, 
    UserName : String, 
    Password : String, 
    ServerName : String, 
    Namespace : String
)

Paramètres

  • bUseNtAuth
    A Boolean that specifies whether the connection manager uses Windows Authentication. true if Windows Authentication is used.
  • UserName
    The user name that the connection manager uses.
  • Password
    The password that the connection manager uses.
  • ServerName
    The name of the server to connect to as a WMI connection.
  • Namespace
    The namespace that the connection manager uses.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

WMIConn Class
WMIConn Members
Microsoft.SqlServer.Dts.ManagedConnections Namespace