PolicyRegistrySetting.Hive Property


Gets or sets the registry hive for the registry-based policy setting.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management.Interop (in Microsoft.GroupPolicy.Management.Interop.dll)


public override sealed RegistryHive Hive { get; set; }
property RegistryHive Hive {
    virtual RegistryHive get() override sealed;
    virtual void set(RegistryHive value) override sealed;
override Hive : RegistryHive with get, set
Public Overrides NotOverridable Property Hive As RegistryHive

Property Value

Type: Microsoft.Win32.RegistryHive

Returns RegistryHive. One of the enumeration values that specifies the registry hive.


Exception Condition

The property is set to an unsupported RegistryHive value.


The following RegistryHive enumeration values are supported: CurrentUser and LocalMachine.

See Also

PolicyRegistrySetting Class
Microsoft.GroupPolicy Namespace

Return to top