Export (0) Print
Expand All
Expand Minimize

Workbook.Permission Property

Gets a Microsoft.Office.Core.Permission object that represents the permission settings in the workbook.

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)

public virtual Permission Permission { get; }

Property Value

A Microsoft.Office.Core.Permission object that represents the permission settings in the workbook.

The following code example uses the Permission property to display a message if permissions are not enabled on the current workbook.

private void DisplayPermission()
{
    if (!this.Permission.Enabled)
    {
        MessageBox.Show("Permissions are not enabled on the current workbook.");
    }
}

Show:
© 2014 Microsoft