System::Collections::Generic::List::AsReadOnly 方法

List::AsReadOnly method

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

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

ReturnValue

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

另见