---
title: "System::Reflection::ParameterInfo::get_IsOptional method"
url: "https://reference.aspose.com/pdf/cpp/system.reflection/parameterinfo/get_isoptional/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Reflection::ParameterInfo::get_IsOptional method. Gets a value indicating whether this parameter is optional in C++."
---

## ParameterInfo::get_IsOptional method


Gets a value indicating whether this parameter is optional.

```cpp
bool System::Reflection::ParameterInfo::get_IsOptional() const
```


### ReturnValue

true if the parameter is optional; otherwise, false.

## See Also

* Class [ParameterInfo](../)
* Namespace [System::Reflection](../../)
* Library [Aspose.PDF for C++](../../../)
