Back to Devexpress

RegistryAccessPolicy.DeleteValue Event

corelibraries-devexpress-dot-data-dot-utils-dot-registryaccesspolicy-62a40198.md

latest3.2 KB
Original Source

RegistryAccessPolicy.DeleteValue Event

Fires when the DevExpress control attempts to delete a value from a system registry key 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.ValueEventArgs> DeleteValue
vb
Public Shared Event DeleteValue As EventHandler(Of RegistryAccessPolicy.ValueEventArgs)

Event Data

The DeleteValue event's data class is RegistryAccessPolicy.ValueEventArgs. 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.
NameGets the name of the value stored in a registry key.
OperationGets an operation on a key value in the system registry.

Remarks

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

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

See Also

SetValue

RegistryAccessPolicy Class

RegistryAccessPolicy Members

DevExpress.Data.Utils Namespace