IOrderedStreamStorage<TKey> Interface
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.
Interface to an ordered storage of Streams. Each stream is identified by a key, and is located at a given position (represented as an index) in storage.
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)
Type Parameters
- TKey
Type of the key that identifes a Stream in storage
- Implements
Properties
Count |
Get the Count of Streams in storage. |
Item[Int32] |
Open an existing Stream in storage for reading, at the given index. |
Item[TKey] |
Open an existing Stream in storage for reading. (Inherited from IStreamStorage<TKey>) |
Methods
Contains(TKey) |
Indicates whether storage contains a Stream with the given key. (Inherited from IStreamStorage<TKey>) |
Create(TKey) |
Open a new Stream for writing, adding it to storage. (Inherited from IStreamStorage<TKey>) |
CreateAt(Int32, TKey) |
Open a new Stream for writing at the given index, adding it to storage. |
Delete(TKey) |
Delete from storage the Stream identified by the given key. (Inherited from IStreamStorage<TKey>) |
DeleteAt(Int32) |
Delete from storage the Stream at the given index. |
GetStreamSize(TKey, Int64, Int64) |
Gets the number of bytes used by an existing Stream in the storage. (Inherited from IStreamStorage<TKey>) |
GetTimestamp(TKey, TimestampKind) |
Gets the timestamp for an existing Stream in the storage. (Inherited from IStreamStorage<TKey>) |
Open(TKey, StreamAccess) |
Open an existing Stream in storage for reading. (Inherited from IStreamStorage<TKey>) |
Reset(IEnumerable<TKey>) |
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. |
SetTimestamp(TKey, TimestampKind, DateTime) |
Sets the timestamp for an existing Stream in the storage. (Inherited from IStreamStorage<TKey>) |
Extension Methods
EmptyIfNull<T>(IEnumerable<T>) |
Return this enumeration in case it is not null. In case it is null return empty enumeration. |