Microsoft.Win32.KeyHandler.Ensure C# (CSharp) Méthode

Ensure() public méthode

public Ensure ( RegistryKey rkey, string extra, bool writable ) : RegistryKey
rkey RegistryKey
extra string
writable bool
Résultat RegistryKey
		public RegistryKey Ensure (RegistryKey rkey, string extra, bool writable)
		{
			return Ensure (rkey, extra, writable, false);
		}

Same methods

KeyHandler::Ensure ( RegistryKey rkey, string extra, bool writable, bool is_volatile ) : RegistryKey

Usage Example

        private RegistryKey CreateSubKey(RegistryKey rkey, string keyname, bool writable)
        {
            KeyHandler keyHandler = KeyHandler.Lookup(rkey, true);

            if (keyHandler == null)
            {
                throw RegistryKey.CreateMarkedForDeletionException();
            }
            return(keyHandler.Ensure(rkey, UnixRegistryApi.ToUnix(keyname), writable));
        }
All Usage Examples Of Microsoft.Win32.KeyHandler::Ensure