## VbaProject::get_IsProtected method


Shows whether the [VbaProject](../) is password protected.

```cpp
bool Aspose::Words::Vba::VbaProject::get_IsProtected()
```


## Examples



Shows whether the [VbaProject](../) is password protected. 
```cpp
auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Vba protected.docm"));
ASSERT_TRUE(doc->get_VbaProject()->get_IsProtected());
```

## See Also

* Class [VbaProject](../)
* Namespace [Aspose::Words::Vba](../../)
* Library [Aspose.Words for C++](../../../)
