RegistryPreference.Delete Method (RegistryHive, String, String, PreferenceAction)
Deletes all Registry preference items that have the specified action that are configured for the specified registry value.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public void Delete(
RegistryHive hive,
string keyPath,
string valueName,
PreferenceAction action
)
public:
void Delete(
RegistryHive hive,
String^ keyPath,
String^ valueName,
PreferenceAction action
)
member Delete :
hive:RegistryHive *
keyPath:string *
valueName:string *
action:PreferenceAction -> unit
Public Sub Delete (
hive As RegistryHive,
keyPath As String,
valueName 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.
valueName
Type: System.StringThe name of the registry value. You can specify an empty string (“”) for the default value.
action
Type: Microsoft.GroupPolicy.PreferenceActionOne of the PreferenceAction values that specifies the action.
See Also
Delete Overload
RegistryPreference Class
Microsoft.GroupPolicy Namespace
Return to top