Back to Devexpress

RegistryAccessPolicy.CreateSubKey Event

corelibraries-devexpress-dot-data-dot-utils-dot-registryaccesspolicy-eb1ea896.md

latest3.0 KB
Original Source

RegistryAccessPolicy.CreateSubKey Event

Fires when the DevExpress control attempts to create a subkey in the system registry and allows you to cancel the operation.

Namespace : DevExpress.Data.Utils

Assembly : DevExpress.Data.Desktop.v25.2.dll

NuGet Packages : DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

csharp
public static event EventHandler<RegistryAccessPolicy.QuerySubKeyTreeOperationEventArgs> CreateSubKey
vb
Public Shared Event CreateSubKey As EventHandler(Of RegistryAccessPolicy.QuerySubKeyTreeOperationEventArgs)

Event Data

The CreateSubKey event's data class is RegistryAccessPolicy.QuerySubKeyTreeOperationEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
HiveGets a registry hive (a logical group of keys, subkeys, and values in the registry). Inherited from RegistryAccessPolicy.RegistryOperationBaseEventArgs.
KeyGets the requested registry key. Inherited from RegistryAccessPolicy.RegistryOperationBaseEventArgs.
OperationGets the operation performed on the subkey.

Remarks

Set the e.Cancel event parameter to true to cancel the operation. e.Hive and e.Key event parameters identify a registry hive and key.

Read the following topic for additional information: Registry Access Policy.

See Also

DeleteSubKeyTree

RegistryAccessPolicy Class

RegistryAccessPolicy Members

DevExpress.Data.Utils Namespace