workbookWorksheetProtection resource type

Namespace: microsoft.graph

Represents the protection of a sheet object.

Methods

Method Return Type Description
Get workbookWorksheetProtection Read the properties and relationships of a workbookWorksheetProtection object.
Protect worksheet None Protect a worksheet. Returns an error if the worksheet is already protected.
Unprotect worksheet None Unprotect a worksheet.

Properties

Property Type Description
options workbookWorksheetProtectionOptions Worksheet protection options. Read-only.
protected Boolean Indicates whether the worksheet is protected. Read-only.

JSON representation

The following JSON representation shows the resource type.

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