## Calendar::ReadOnly method


Gets read only version of calendar.

```cpp
static CalendarPtr System::Globalization::Calendar::ReadOnly(const CalendarPtr &calendar)
```


| Parameter | Type | Description |
| --- | --- | --- |
| calendar | const CalendarPtr\& | [Calendar](../) to get read only version of. |

### ReturnValue

Same calendar if it is read only or a copy of it with read-only flag set.

## See Also

* Typedef [CalendarPtr](../../calendarptr/)
* Class [Calendar](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PUB for C++](../../../)
