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.

Exception Condition
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.

System_CAPS_noteNote

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

.NET Framework
Available since 2.0
Return to top
Show: