RegistryPreference.Delete Method (RegistryHive, String, String)
Deletes all Registry preference items 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
)
public:
void Delete(
RegistryHive hive,
String^ keyPath,
String^ valueName
)
member Delete :
hive:RegistryHive *
keyPath:string *
valueName:string -> unit
Public Sub Delete (
hive As RegistryHive,
keyPath As String,
valueName As String
)
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.
See Also
Delete Overload
RegistryPreference Class
Microsoft.GroupPolicy Namespace
Return to top