Partilhar via


IOrderedStreamStorage<TKey>.Reset(IEnumerable<TKey>) Method

Definition

Reset storage with the given enumeration of keys.

New keys will be enumerated and compared against existing keys in storage. The new keys enumeration will determine the position of existing keys in storage: that is, if they exist in both storage and newKeys they will be moved to the position in the newKeys enumeration.

Existing keys in storage that do not exist in the newKeys enumeration will be removed from storage.

Keys that exist in the newKeys enumeration but do not exist in storage will be added to storage, and an empty Stream will be created for them.

public:
 void Reset(System::Collections::Generic::IEnumerable<TKey> ^ newKeys);
public void Reset (System.Collections.Generic.IEnumerable<TKey> newKeys);
abstract member Reset : seq<'Key> -> unit
Public Sub Reset (newKeys As IEnumerable(Of TKey))

Parameters

newKeys
IEnumerable<TKey>

Applies to