Udostępnij za pośrednictwem


PSDataCollection<T>.ReadAll Method

Definition

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

A new collection with a copy of all the elements in the current collection.

Applies to