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.

ExceptionCondition
NotSupportedException

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.

NoteNote

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft