## List::AsReadOnly method


获取对此集合的只读引用。

```cpp
SharedPtr<System::Collections::ObjectModel::ReadOnlyCollection<T>> System::Collections::Generic::List<T>::AsReadOnly()
```


### ReturnValue

新创建的当前列表的只读包装器。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [ReadOnlyCollection](../../../system.collections.objectmodel/readonlycollection/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
