FileStreamStorage<TKey> Class
A generic implementation of stream storage in the file system. Stores files in a directory. The files it recognizes and accepts for creation can be all files in the directory or only files with a specific extension.
Assembly: Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)
Microsoft.VisualStudio.PlatformUI.DisposableObject
Microsoft.VisualStudio.Utilities.FileStreamStorage<TKey>
| Name | Description | |
|---|---|---|
![]() | FileStreamStorage<TKey>(IStreamStorageKeyFactory<TKey>, String, String) | Initializes a new instance of FileStreamStorage. |
| Name | Description | |
|---|---|---|
![]() | EnableRaisingEvents | |
![]() | IsDisposed | This API supports the product infrastructure and is not intended to be used directly from your code. Returns whether the object has been disposed once, which protects against double disposal.(Inherited from DisposableObject.) |
![]() | Item[TKey] | Open an existing stream in storage for reading. |
![]() | StorageFileExtension | Gets or sets the extension for contained files. If set to AllExtensions, the storage will recognize all files in the storage directory. |
![]() | StoragePath | Gets or sets the directory that will contain the stored files. |
| Name | Description | |
|---|---|---|
![]() | Contains(TKey) | Determines whether the storage contains a stream with the given key. |
![]() | Create(TKey) | Opens a new stream for writing, adding it to storage. |
![]() | Delete(TKey) | Deletes from storage the Stream identified by the given key. |
![]() | Dispose() | This API supports the product infrastructure and is not intended to be used directly from your code. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from DisposableObject.) |
![]() | Dispose(Boolean) | This API supports the product infrastructure and is not intended to be used directly from your code. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Standard virtual overload for IDisposable pattern.(Inherited from DisposableObject.) |
![]() | DisposeManagedResources() | (Overrides DisposableObject.DisposeManagedResources().) |
![]() | DisposeNativeResources() | This API supports the product infrastructure and is not intended to be used directly from your code. Allows derived classes to provide custom dispose handling for native resources.(Inherited from DisposableObject.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | This API supports the product infrastructure and is not intended to be used directly from your code. Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from DisposableObject.) |
![]() | GetEnumerator() | Gets an enumerator for keys in storage. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetStreamSize(TKey, Int64, Int64) | Gets the number of bytes actually used by an existing Stream in the storage. |
![]() | GetTimestamp(TKey, TimestampKind) | Gets the timestamp for an existing Stream in the storage. |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Open(TKey, StreamAccess) | Open an existing stream in storage. |
![]() | SetTimestamp(TKey, TimestampKind, DateTime) | Sets the timestamp for an existing stream in the storage. |
![]() | ThrowIfDisposed() | This API supports the product infrastructure and is not intended to be used directly from your code. Throws an ObjectDisposedException if this object has been disposed.(Inherited from DisposableObject.) |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | AllExtensions | Represents all file extensions. |
| Name | Description | |
|---|---|---|
![]() | Disposing | This API supports the product infrastructure and is not intended to be used directly from your code. Raised when the event is being disposed, that is, while it is still accessible.(Inherited from DisposableObject.) |
![]() | StreamChanged | Raised when a stream is changed. |
![]() | StreamCreated | aised when a stream is created. |
![]() | StreamDeleted | Raised when a stream is deleted. |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable.GetEnumerator() | Gets an enumerator for keys in storage. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.







