Rediger

Del via


ReadOnlyObservableCollection<T>(ObservableCollection<T>) Constructor

Definition

Initializes a new instance of the ReadOnlyObservableCollection<T> class that serves as a wrapper around the specified 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))

Parameters

list
ObservableCollection<T>

The ObservableCollection<T> with which to create this instance of the ReadOnlyObservableCollection<T> class.

Exceptions

list is null.

Applies to