Exemplo n.º 1
0
 public override bool Connect(string provider)
 {
     if (domain != null || userName != null)
     {
         options.Username      = userName;
         options.Password      = password;
         options.Impersonation = ImpersonationLevel.Impersonate;
     }
     connectionScope = RegistryConnection.ConnectionScope(machineName, options, this, provider);
     return(this.IsConnected);
 }
 public override bool Connect(string provider)
 {
     connectionScope = RegistryConnection.ConnectionScope(Environment.MachineName,
                                                          options, this, provider);
     return(this.IsConnected);
 }