public IRegistryWrapper OpenSubKey(string name, bool writable)
 {
     using (this.provider.CurrentPSTransaction)
     {
         TransactedRegistryKey txRegKey = this.txRegKey.OpenSubKey(name, writable);
         return(txRegKey == null ? (IRegistryWrapper)null : (IRegistryWrapper) new TransactedRegistryWrapper(txRegKey, this.provider));
     }
 }
 public IRegistryWrapper CreateSubKey(string subkey)
 {
     using (this.provider.CurrentPSTransaction)
     {
         TransactedRegistryKey subKey = this.txRegKey.CreateSubKey(subkey);
         return(subKey == null ? (IRegistryWrapper)null : (IRegistryWrapper) new TransactedRegistryWrapper(subKey, this.provider));
     }
 }
Ejemplo n.º 3
0
 public IRegistryWrapper CreateSubKey(string subkey)
 {
     using (this.provider.CurrentPSTransaction)
     {
         TransactedRegistryKey txRegKey = this.txRegKey.CreateSubKey(subkey);
         if (txRegKey == null)
         {
             return(null);
         }
         return(new TransactedRegistryWrapper(txRegKey, this.provider));
     }
 }
Ejemplo n.º 4
0
 public IRegistryWrapper OpenSubKey(string name, bool writable)
 {
     using (_provider.CurrentPSTransaction)
     {
         TransactedRegistryKey newKey = _txRegKey.OpenSubKey(name, writable);
         if (newKey == null)
         {
             return(null);
         }
         else
         {
             return(new TransactedRegistryWrapper(newKey, _provider));
         }
     }
 }
Ejemplo n.º 5
0
 public IRegistryWrapper CreateSubKey(string subkey)
 {
     using (_provider.CurrentPSTransaction)
     {
         TransactedRegistryKey newKey = _txRegKey.CreateSubKey(subkey);
         if (newKey == null)
         {
             return(null);
         }
         else
         {
             return(new TransactedRegistryWrapper(newKey, _provider));
         }
     }
 }
Ejemplo n.º 6
0
 internal TransactedRegistryWrapper(TransactedRegistryKey txRegKey, CmdletProvider provider)
 {
     this.txRegKey = txRegKey;
     this.provider = provider;
 }