All Property
Collapse the table of content
Expand the table of content

RegistryPermissionAttribute.All Property

Sets full access for the keys and values specified.

[Visual Basic]
Public Property All As String
public string All {get; set;}
public: __property String* get_All();
public: __property void set_All(String*);
public function get All() : String;
public function set All(String);

Property Value

A list of keys and values with paths for full access.


[Visual Basic] 
' Set the Read, Write, Create, and All properties.
<RegistryPermissionAttribute(SecurityAction.PermitOnly, Read:="HKEY_LOCAL_MACHINE\HARDWARE"), _
RegistryPermissionAttribute(SecurityAction.PermitOnly, Write:="HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION"), _
RegistryPermissionAttribute(SecurityAction.PermitOnly, _
RegistryPermissionAttribute(SecurityAction.PermitOnly, _
    All:="HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor")> _
Public Shared Sub PermitOnlyMethod()

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

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

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

RegistryPermissionAttribute Class | RegistryPermissionAttribute Members | System.Security.Permissions Namespace

© 2016 Microsoft