IOrderedStreamStorage<TKey> 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
流的已排序存储的接口。 每个流都由一个键标识,位于给定位置 (表示为存储中的索引) 。
generic <typename TKey>
public interface class IOrderedStreamStorage : Microsoft::VisualStudio::Utilities::IStreamStorage<TKey>, System::Collections::Generic::IEnumerable<TKey>
public interface IOrderedStreamStorage<TKey> : Microsoft.VisualStudio.Utilities.IStreamStorage<TKey>, System.Collections.Generic.IEnumerable<TKey>
type IOrderedStreamStorage<'Key> = interface
interface IStreamStorage<'Key>
interface seq<'Key>
interface IEnumerable
Public Interface IOrderedStreamStorage(Of TKey)
Implements IEnumerable(Of TKey), IStreamStorage(Of TKey)
类型参数
- TKey
Identifes 存储中的流的密钥类型
- 实现
属性
| Count |
获取存储中流的计数。 |
| Item[Int32] |
在指定的索引处打开存储中的现有流以进行读取。 |
| Item[TKey] |
在存储中打开现有流以进行读取。 (继承自 IStreamStorage<TKey>) |
方法
| Contains(TKey) |
指示存储是否包含具有给定键的流。 (继承自 IStreamStorage<TKey>) |
| Create(TKey) |
打开用于写入的新流,将其添加到存储中。 (继承自 IStreamStorage<TKey>) |
| CreateAt(Int32, TKey) |
打开一个新流以便在给定索引处写入,并将其添加到存储中。 |
| Delete(TKey) |
从存储中删除由给定键标识的流。 (继承自 IStreamStorage<TKey>) |
| DeleteAt(Int32) |
从存储中删除给定索引处的流。 |
| GetStreamSize(TKey, Int64, Int64) |
获取存储中现有流使用的字节数。 (继承自 IStreamStorage<TKey>) |
| GetTimestamp(TKey, TimestampKind) |
获取存储中现有流的时间戳。 (继承自 IStreamStorage<TKey>) |
| Open(TKey, StreamAccess) |
在存储中打开现有流以进行读取。 (继承自 IStreamStorage<TKey>) |
| Reset(IEnumerable<TKey>) |
用给定的密钥枚举重置存储。 将枚举新密钥,并将其与存储中的现有密钥进行比较。 新的密钥枚举将确定现有密钥在存储中的位置:也就是说,如果它们存在于存储中并且 newKeys,它们将被移动到 newKeys 枚举中的位置。 存储中不存在的 newKeys 枚举中的现有密钥将从存储中删除。 存在于 newKeys 枚举中但不存在于存储中的密钥将添加到存储中,并将为其创建一个空流。 |
| SetTimestamp(TKey, TimestampKind, DateTime) |
为存储中的现有流设置时间戳。 (继承自 IStreamStorage<TKey>) |
扩展方法
| EmptyIfNull<T>(IEnumerable<T>) |