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
hive
Type: Microsoft.Win32.RegistryHiveOne of theRegistryHive values that specifies the registry hive of the key.
keyPath
Type: System.StringThe path to the registry key.
action
Type: Microsoft.GroupPolicy.PreferenceActionOne of the PreferenceAction values that specifies the action.
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