Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WmiConnection"/> class.
 /// </summary>
 /// <param name="path">
 /// The object path of the correct WMI namespace.
 /// <para/>
 /// For local access to the default namespace, use a simple object path: "root\default" or "\\.\root\default".
 /// <para />
 /// For access to the default namespace on a remote computer using COM or Microsoft-compatible networking, include the computer name: "\\server\root\default".
 /// </param>
 /// <param name="options">Specifies all settings required to make a WMI connection.</param>
 #endregion
 public WmiConnection(string path, WmiConnectionOptions options)
 {
     this.path    = path;
     this.options = options;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WmiConnection"/> class.
 /// </summary>
 /// <param name="path">
 /// The object path of the correct WMI namespace.
 /// <para/>
 /// For local access to the default namespace, use a simple object path: "root\default" or "\\.\root\default".
 /// <para />
 /// For access to the default namespace on a remote computer using COM or Microsoft-compatible networking, include the computer name: "\\server\root\default".
 /// </param>
 /// <param name="credential">The credential to make a remote connection.</param>
 /// <param name="options">Specifies all settings required to make a WMI connection.</param>
 #endregion
 public WmiConnection(string path, NetworkCredential credential, WmiConnectionOptions options)
 {
     this.path       = path;
     this.credential = credential;
     this.options    = options;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WmiConnection"/> class.
 /// </summary>
 /// <param name="options">Specifies all settings required to make a WMI connection.</param>
 #endregion
 public WmiConnection(WmiConnectionOptions options)
     : base()
 {
     this.options = options;
 }