This documentation is archived and is not being maintained.

RegistryPermissionAttribute.Write Property

Gets or sets write access for the specified registry keys.

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

public string Write { get; set; }
/** @property */
public String get_Write ()

/** @property */
public void set_Write (String value)

public function get Write () : String

public function set Write (value : String)

Not applicable.

Property Value

A semicolon-separated list of registry key paths, for write access.

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

The following example uses the Write property to set write access for the specified registry key path.


/** @attribute RegistryPermissionAttribute(SecurityAction.PermitOnly,

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0