GroupPolicyExtension.IsReadOnly Property

 

Gets a value that indicates whether the Group Policy object (GPO) is opened in read-only mode.

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

Syntax

public bool IsReadOnly { get; private set; }
public:
property bool IsReadOnly {
    bool get();
    private: void set(bool value);
}
member IsReadOnly : bool with get, private set
Public Property IsReadOnly As Boolean
    Get
    Private Set
End Property

Property Value

Type: System.Boolean

Returns Boolean. true to indicate that the GPO is opened for read-only; otherwise, false.

Exceptions

Exception Condition
InvalidOperationException

The GPO is not open.

ObjectDisposedException

The GroupPolicyExtension is disposed.

See Also

GroupPolicyExtension Class
Microsoft.GroupPolicy Namespace

Return to top