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)

Syntax

public override sealed RegistryHive Hive { get; set; }
public:
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.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The property is set to an unsupported RegistryHive value.

Remarks

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

See Also

PolicyRegistrySetting Class
Microsoft.GroupPolicy Namespace

Return to top