##  protect(self, protection_type, password) {#aspose.cells.ProtectionType-str}
Protege un libro de trabajo.



```python

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


| Parámetro| Tipo| Descripción|
| :- | :- | :- |
| protection_type | [`ProtectionType`](/cells/python-net/es/aspose.cells/protectiontype) | Tipo de protección.|
| password | str | Contraseña para proteger el libro de trabajo.|



###  Ver también
* módulo [`aspose.cells`](../../)
* clase [`Workbook`](/cells/python-net/es/aspose.cells/workbook)
