WorksheetProtection resource type

Namespace: microsoft.graph

Represents the protection of a sheet object.

Methods

Method Return Type Description
Get WorksheetProtection WorkbookWorksheetProtection Read properties and relationships of worksheetProtection object.
Protect None Protect a worksheet. It throws if the worksheet has been protected.
Unprotect None Unprotect a worksheet

Properties

Property Type Description
options workbookWorksheetProtectionOptions Sheet protection options. Read-only.
protected boolean Indicates if the worksheet is protected. Read-only.

JSON representation

The following JSON representation shows the resource type.

{
  "options": { "@odata.type": "microsoft.graph.workbookWorksheetProtectionOptions" },
  "protected": true
}