ReadOnlyObservableCollection<T>(ObservableCollection<T>) 构造函数

定义

初始化 ReadOnlyObservableCollection<T> 类的新实例,该类用作指定的 ObservableCollection<T> 的包装。

public:
 ReadOnlyObservableCollection(System::Collections::ObjectModel::ObservableCollection<T> ^ list);
public ReadOnlyObservableCollection (System.Collections.ObjectModel.ObservableCollection<T> list);
new System.Collections.ObjectModel.ReadOnlyObservableCollection<'T> : System.Collections.ObjectModel.ObservableCollection<'T> -> System.Collections.ObjectModel.ReadOnlyObservableCollection<'T>
Public Sub New (list As ObservableCollection(Of T))

参数

例外

listnull

适用于