
## protect(self, protection_type, password) {#aspose.cells.ProtectionType-System.String}

Protects a workbook.



```python

def protect(self, protection_type, password):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| protection_type | aspose.cells.ProtectionType | Protection type. |
| password | System.String | Password to protect the workbook. |



### See Also
* module [`aspose.cells`](../../)
* class [`Workbook`](/cells/python-net/aspose.cells/workbook)
