Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RegistryPermissionAttribute.Create Property

Gets or sets create-level access for the specified registry keys.

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

public string Create { get; set; }
/** @property */
public String get_Create ()

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

public function get Create () : String

public function set Create (value : String)

Not applicable.

Property Value

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

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

The following example uses the Create property to set create-level access for the specified registry key path.

[RegistryPermissionAttribute(SecurityAction.PermitOnly,
     Create = "HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System")]

/** @attribute RegistryPermissionAttribute(SecurityAction.PermitOnly,
    Create = "HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System")
 */

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

Community Additions

ADD
Show:
© 2015 Microsoft