RegistryItem Class


Represents the registry item that is modified in a Group Policy setting that modifies the registry.

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

Inheritance Hierarchy



public class RegistryItem : IEquatable<RegistryItem>
public ref class RegistryItem : IEquatable<RegistryItem^>
type RegistryItem = 
        interface IEquatable<RegistryItem>
Public Class RegistryItem
    Implements IEquatable(Of RegistryItem)


Name Description
System_CAPS_pubmethod RegistryItem()

Creates a new instance of the RegistryItem class.


Name Description
System_CAPS_pubproperty FullKeyPath

Gets the full key path for the registry item.

System_CAPS_pubproperty Hive

Gets or sets the registry hive for the registry item.

System_CAPS_pubproperty KeyPath

Gets or sets the key path for the registry item.


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Equals(RegistryItem)

Determines whether the specified registry item is equal to this registry item.

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)


You can use the properties of the RegistryItem class to get the hive, the key path, and the full key path of the registry key that is modified by a policy setting or a preference setting (that modifies the registry on the client). You can use the Equals method to determine whether two Group Policy settings modify the same registry key.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.GroupPolicy Namespace

Return to top