RegistryPreference.Read Method (RegistryHive, String)

 

Reads all Registry preference items that configure the specified key or any of its first-level values.

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

Syntax

public ReadOnlyCollection<RegistryItem> Read(
    RegistryHive hive,
    string keyPath
)
public:
ReadOnlyCollection<RegistryItem^>^ Read(
    RegistryHive hive,
    String^ keyPath
)
member Read : 
        hive:RegistryHive *
        keyPath:string -> ReadOnlyCollection<RegistryItem>
Public Function Read (
    hive As RegistryHive,
    keyPath As String
) As ReadOnlyCollection(Of RegistryItem)

Parameters

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<RegistryItem>

Returns ReadOnlyCollection<T>. A read-only collection of RegistryItem objects that contains the Registry preference items.

See Also

Read Overload
RegistryPreference Class
Microsoft.GroupPolicy Namespace

Return to top