| title | workbookWorksheetProtection resource type |
|---|---|
| description | Represents the protection of a sheet object. |
| author | lumine2008 |
| ms.localizationpriority | medium |
| ms.subservice | excel |
| doc_type | resourcePageType |
| toc.title | Worksheet protection |
| ms.date | 08/01/2024 |
Namespace: microsoft.graph
Represents the protection of a sheet object.
| 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. |
| Property | Type | Description |
|---|---|---|
| options | workbookWorksheetProtectionOptions | Worksheet protection options. Read-only. |
| protected | Boolean | Indicates whether the worksheet is protected. Read-only. |
The following JSON representation shows the resource type.
{
"options": { "@odata.type": "microsoft.graph.workbookWorksheetProtectionOptions" },
"protected": true
}