RegistrySecurity
Represents the Windows access control security for a registry key. This class cannot be inherited.
using System.Security.Principal;
namespace System.Security.AccessControl
{
public sealed class RegistrySecurity : NativeObjectSecurity
{
public override Type AccessRightType {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
public override Type AccessRuleType {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
public override Type AuditRuleType {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
public RegistrySecurity()
: base(false, ResourceType.Unknown)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void AddAccessRule(RegistryAccessRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void AddAuditRule(RegistryAuditRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public override AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public bool RemoveAccessRule(RegistryAccessRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void RemoveAccessRuleAll(RegistryAccessRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void RemoveAccessRuleSpecific(RegistryAccessRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public bool RemoveAuditRule(RegistryAuditRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void RemoveAuditRuleAll(RegistryAuditRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void RemoveAuditRuleSpecific(RegistryAuditRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void ResetAccessRule(RegistryAccessRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void SetAccessRule(RegistryAccessRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
public void SetAuditRule(RegistryAuditRule rule)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_Registry);
}
}
}