## DateTimeFormatInfo::ReadOnly method


获取格式化程序的只读版本。

```cpp
static DateTimeFormatInfoPtr System::Globalization::DateTimeFormatInfo::ReadOnly(const DateTimeFormatInfoPtr &info)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| info | const DateTimeFormatInfoPtr\& | 获取只读版本的格式化程序。 |

### ReturnValue

如果 **info** 是只读的，则返回它；否则创建它的副本并将其标记为只读。

## 另见

* Typedef [DateTimeFormatInfoPtr](../../datetimeformatinfoptr/)
* Class [DateTimeFormatInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Page for C++](../../../)
