Share via


RegistryPreference.Delete Method (RegistryHive, String, PreferenceAction)

 

Deletes the Registry preference items that are configured with the specified action for the specified registry key or any of its first-level values.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Syntax

public void Delete(
    RegistryHive hive,
    string keyPath,
    PreferenceAction action
)
public:
void Delete(
    RegistryHive hive,
    String^ keyPath,
    PreferenceAction action
)
member Delete : 
        hive:RegistryHive *
        keyPath:string *
        action:PreferenceAction -> unit
Public Sub Delete (
    hive As RegistryHive,
    keyPath As String,
    action As PreferenceAction
)

Parameters

Remarks

All Registry preference items that have the specified action and that configure the specified key or any of its first-level values are deleted.

See Also

Delete Overload
RegistryPreference Class
Microsoft.GroupPolicy Namespace

Return to top