RegistryPreference.Delete Method (RegistryHive, String)

 

Deletes the Registry preference items that are configured 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
)
public:
void Delete(
    RegistryHive hive,
    String^ keyPath
)
member Delete : 
        hive:RegistryHive *
        keyPath:string -> unit
Public Sub Delete (
    hive As RegistryHive,
    keyPath As String
)

Parameters

Remarks

All Registry preference items 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