Combines the STANDARD_RIGHTS_WRITE, KEY_SET_VALUE, and KEY_CREATE_SUB_KEY access rights. When you call theRegOpenKeyExfunction, the system checks the requested access rights against the key's security descriptor
public void SetAccessControl (System.Security.AccessControl.RegistrySecurity registrySecurity); 参数 registrySecurity RegistrySecurity 要应用于当前子项的访问控制安全性。 例外 UnauthorizedAccessException 当前的 RegistryKey 对象表示一个具有访问控制安全性的项,并且调用方没有 ChangePermissions 权限。 ArgumentNull...
Receives the handle to the registry key. This handle is opened with all access rights. For more information, seeRegistry Key Security and Access Rights. Return value If the method succeeds, the return value isS_OK. Otherwise, the method returns one of the COM error codes defined in the Plat...
OpenSubKey(String, RegistryKeyPermissionCheck, RegistryRights) 检索指定的子项以进行读取或读/写访问,请求指定的访问权限。 OpenSubKey(String, RegistryRights) 检索具有指定名称和访问权限的子项。 从 .NET Framework 4.6 开始可用。 SetAccessControl(RegistrySecurity) 向现有注册表项应用 Windows 访问控制安全...
OpenSubKey(String, RegistryKeyPermissionCheck, RegistryRights) 擷取指定的子機碼以供讀取或讀取/寫入存取,並要求指定的存取權限。 C# publicMicrosoft.Win32.RegistryKey? OpenSubKey (stringname, Microsoft.Win32.RegistryKeyPermissionCheck permissionCheck, System.Security.AccessControl.RegistryRights rights); ...
publicSystem.Security.AccessControl.RegistrySecurityGetAccessControl(); 返回 RegistrySecurity 一个对象,该对象描述针对由当前RegistryKey表示的注册表项的访问控制权限。 例外 SecurityException 用户没有必要的权限。 ObjectDisposedException 要操作的RegistryKey已关闭(无法访问关闭的项)。
security object that grants no access.RegistrySecurity mSec =newRegistrySecurity();// Add a rule that grants the current user the right// to read and enumerate the name/value pairs in a key,// to read its access and audit rules, to enumerate// its subkeys, to create subkeys, and to...
然后,示例代码调用RemoveAccessRule方法,将右侧合并SetValue回 对象中的RegistrySecurity规则。 备注 此示例不将安全对象附加到RegistryKey对象。 本节中的第二个示例附加安全对象,中的RegistryKey.GetAccessControlRegistryKey.SetAccessControl示例也是如此。 C#
Enable Registry Access Management to set the permissions for your registry. When enabled, the Docker Hub registry is set by default; however you can also restrict this registry for your developers. SelectAdd registryand enter your registry details in the applicable fields, and then selectCreateto ...
Although both registry.access.redhat.com and registry.redhat.io hold essentially the same container images, some images require an active Red Hat account and are only available from registry.redhat.io. Getting a Red Hat Login To use the registry.redhat.io registry, you have to have a Red Hat...