共用方式為


StreamStorageMonitor<TKey> Class

Definition

Monitors the size of an IStreamStorage via its IStreamStorageEvents interface. If the number of streams or the collective size of streams in the storage exceed given target thresholds, streams are deleted from the storage until the number/size of streams falls below the target thresholds.

generic <typename TKey>
public ref class StreamStorageMonitor : Microsoft::VisualStudio::PlatformUI::DisposableObject
template <typename TKey>
[Windows::Foundation::Metadata::WebHostHidden]
class StreamStorageMonitor : Microsoft::VisualStudio::PlatformUI::DisposableObject
public class StreamStorageMonitor<TKey> : Microsoft.VisualStudio.PlatformUI.DisposableObject
type StreamStorageMonitor<'Key> = class
    inherit DisposableObject
Public Class StreamStorageMonitor(Of TKey)
Inherits DisposableObject

Type Parameters

TKey

The type of the key.

Inheritance
StreamStorageMonitor<TKey>

Constructors

StreamStorageMonitor<TKey>(IStreamStorage<TKey>, Int32, Int64, Boolean, IEqualityComparer<TKey>)

Creates a StreamStorageMonitor

Properties

EnableMonitoring

Indicates whether the monitor is enabled

IsDisposed

Returns whether the object has been disposed once, protects against double disposal

(Inherited from DisposableObject)

Methods

Dispose()

Disposes the current object then suppresses further finalization.

(Inherited from DisposableObject)
Dispose(Boolean)

Standard virtual overload for IDisposable pattern

(Inherited from DisposableObject)
DisposeManagedResources()

Disposes managed resources for this object

DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources

(Inherited from DisposableObject)
ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed

(Inherited from DisposableObject)
ValidateLimits(Int32, Int64)

Validates the maxStreamCount and maxStorageSize parameters for the constructor. Public visibility so VS can pre-validate the parameters before sending them off to the VsHub service module, where invalid arguments will be much less visible.

Events

Disposing

Raised when the event is being disposed, while it is still accessible.

(Inherited from DisposableObject)

Applies to