IOrderedStreamStorage<TKey>.Reset(IEnumerable<TKey>) 方法

定义

用给定的密钥枚举重置存储。

将枚举新密钥,并将其与存储中的现有密钥进行比较。 新的密钥枚举将确定现有密钥在存储中的位置:也就是说,如果它们存在于存储中并且 newKeys,它们将被移动到 newKeys 枚举中的位置。

存储中不存在的 newKeys 枚举中的现有密钥将从存储中删除。

存在于 newKeys 枚举中但不存在于存储中的密钥将添加到存储中,并将为其创建一个空流。

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))

参数

newKeys
IEnumerable<TKey>

适用于