## WriteProtection::ValidatePassword(const U16String\&) method


Returns true if the specified password is the same as the write-protection password the file was protected with.

```cpp
bool Aspose::Cells::WriteProtection::ValidatePassword(const U16String &password)
```


| Parameter | Type | Description |
| --- | --- | --- |
| password | const U16String\& | The specified password. |

## ReturnValue



## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [WriteProtection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## WriteProtection::ValidatePassword(const char16_t*) method


Returns true if the specified password is the same as the write-protection password the file was protected with.

```cpp
bool Aspose::Cells::WriteProtection::ValidatePassword(const char16_t *password)
```


| Parameter | Type | Description |
| --- | --- | --- |
| password | const char16_t* | The specified password. |

## ReturnValue



## See Also

* Class [Vector](../../vector/)
* Class [WriteProtection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
