RegistryPreference.Delete Method (RegistryHive, String, Int32)
Deletes the Registry preference item at the specified order if it is configured for the specified key or one 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,
int order
)
public:
void Delete(
RegistryHive hive,
String^ keyPath,
int order
)
member Delete :
hive:RegistryHive *
keyPath:string *
order:int -> unit
Public Sub Delete (
hive As RegistryHive,
keyPath As String,
order As Integer
)
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.
order
Type: System.Int32The order for the Registry preference item.
See Also
Delete Overload
RegistryPreference Class
Microsoft.GroupPolicy Namespace
Return to top