RegistryPermissionAttribute.All Property

NOTE: This property is now obsolete.

Gets or sets full access for the specified registry keys.

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)

[ObsoleteAttribute("Please use the ViewAndModify property instead.")] 
public string All { get; set; }
/** @property */
public String get_All ()

/** @property */
public void set_All (String value)

public function get All () : String

public function set All (value : String)

Not applicable.

Property Value

A semicolon-separated list of registry key paths, for full access.

Exception typeCondition


The get accessor is called; it is only provided for C# compiler compatibility.

Key access implies access to all subkeys and all values.

The following example uses the All property to grant full access to the specified registry key path.

     All = "HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor")]

/** @attribute RegistryPermissionAttribute(SecurityAction.PermitOnly,

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 1.0, 1.1, 2.0
Obsolete (compiler warning) in 3.0

Community Additions