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
[C#]
public string All {get; set;}
[C++]
public: __property String* get_All();
public: __property void set_All(String*);
[JScript]
public function get All() : String;
public function set All(String);

Property Value

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

Example

[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, _
    Create:="HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System"), _
RegistryPermissionAttribute(SecurityAction.PermitOnly, _
    All:="HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor")> _
Public Shared Sub PermitOnlyMethod()

[C#] 
[RegistryPermissionAttribute(SecurityAction.PermitOnly, 
     All = "HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor")]

[C++] 
[RegistryPermissionAttribute(SecurityAction::PermitOnly,
   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.

Requirements

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

Show:
© 2016 Microsoft