Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reads all the Registry preference items that have the specified action that configure the 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,
PreferenceAction action
)
public:
ReadOnlyCollection<RegistryItem^>^ Read(
RegistryHive hive,
String^ keyPath,
PreferenceAction action
)
member Read :
hive:RegistryHive *
keyPath:string *
action:PreferenceAction -> ReadOnlyCollection<RegistryItem>
Public Function Read (
hive As RegistryHive,
keyPath As String,
action As PreferenceAction
) As ReadOnlyCollection(Of RegistryItem)
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.
action
Type: Microsoft.GroupPolicy.PreferenceActionOne of the PreferenceAction values that specifies the action.
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