TelemetryDisposableObject Class

Definition

Helper base class to provide virtual method for releasing managed resources and preventing from calling Dispose several times.

C++
public ref class TelemetryDisposableObject abstract : IDisposable
Inheritance
TelemetryDisposableObject
Derived
Implements

Constructors

Properties

IsDisposed

Gets a value indicating whether session is deposed - to detect redundant calls

Methods

Dispose()

This code added to correctly implement the disposable pattern.

DisposeManagedResources()

User should implement it to dispose managed resources

RequiresNotDisposed()

This function throws an ObjectDisposedException if the object is disposed.

Applies to

製品 バージョン
Visual Studio SDK 2019, 2022