Permission.Enabled Property

Returns or sets a Boolean value that indicates whether permissions are enabled on the active document.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property Enabled As Boolean
    Get
    Set
'Usage
Dim instance As Permission
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
bool Enabled { get; set; }

Property Value

Type: System.Boolean

Remarks

Use the Enabled property to determine whether permissions are restricted on the active document, and to enable or disable permissions. Set Enabled to False to disable permissions and to remove all users, other than the document author, and their permissions.

When permissions are disabled, the Count property of the Permission object returns 0 (zero); however, when permissions are re-enabled, the permissions of the document author remain intact.

See Also

Reference

Permission Interface

Permission Members

Microsoft.Office.Core Namespace