PSDataCollection<T>.ReadAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Makes a shallow copy of all the elements currently in this collection and clears them from this collection. This will not result in a blocking call.
Calling this method might have side effects on the enumerator. When this method is called, the behavior of the enumerator is not defined.
public:
System::Collections::ObjectModel::Collection<T> ^ ReadAll();
public System.Collections.ObjectModel.Collection<T> ReadAll ();
member this.ReadAll : unit -> System.Collections.ObjectModel.Collection<'T>
Public Function ReadAll () As Collection(Of T)
Returns
Collection<T>
A new collection with a copy of all the elements in the current collection.