PolicySettings.GetRegistry Method (Boolean)
Retrieves an instance of the Group Policy Object (GPO) Editor extension that is used to create, delete, modify, and read registry-based policy settings. The instance can optionally be returned for read-only mode.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public RegistryPolicy GetRegistry(
bool readOnly
)
public:
RegistryPolicy^ GetRegistry(
bool readOnly
)
member GetRegistry :
readOnly:bool -> RegistryPolicy
Public Function GetRegistry (
readOnly As Boolean
) As RegistryPolicy
Parameters
readOnly
Type: System.Booleantrue to open the GPO Editor extension in read-only mode; otherwise false.
Return Value
Type: Microsoft.GroupPolicy.RegistryPolicy
Returns RegistryPolicy. An object that represents an instance of the GPO Editor extension.
Remarks
This method returns an instance of the GPO editor extension that is used for registry-based policy settings. If the readOnly parameter is set to false, you can use this instance to create, delete, modify and read registry-based policy settings for the GPO section. If the readOnly parameter is set to true, the instance can only be used to read registry-based policy settings. The GPO section is determined by whether the PolicySettings object is obtained from a ComputerConfiguration object or from a UserConfiguration object. For more information, see PolicySettings.
See Also
PolicySettings Class
Microsoft.GroupPolicy Namespace
Return to top