Export (0) Print
Expand All

RegistryPermissionAttribute.ViewAndModify Property

Gets or sets a specified set of registry keys that can be viewed and modified.

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

public string ViewAndModify { get; set; }

Property Value

Type: System.String
A semicolon-separated list of registry key paths, for create, read, and write access.


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

Key access implies access to all values it contains and all variables under it.

This property specifies Create, Read, and Write access rights for the specified keys and their values. The access rights are for registry data only; they do not include the access control rights ChangeAccessControl or ViewAccessControl.


The get accessor is provided for C# compiler compatibility. The C# compiler requires attribute properties to be read/write.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2014 Microsoft