## DateTimeFormatInfo::ReadOnly method


Gets read-only version of formatter.

```cpp
static DateTimeFormatInfoPtr System::Globalization::DateTimeFormatInfo::ReadOnly(const DateTimeFormatInfoPtr &info)
```


| Parameter | Type | Description |
| --- | --- | --- |
| info | const DateTimeFormatInfoPtr\& | Formatter to get read-only version of. |

### ReturnValue

if **info** is read-only, returns it, otherwise creates a copy of it and marks it as read-only.

## See Also

* Typedef [DateTimeFormatInfoPtr](../../datetimeformatinfoptr/)
* Class [DateTimeFormatInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
