다음을 통해 공유


TelemetryDisposableObject Class

Definition

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

public ref class TelemetryDisposableObject abstract : IDisposable
public abstract class TelemetryDisposableObject : IDisposable
type TelemetryDisposableObject = class
    interface IDisposable
Public MustInherit Class TelemetryDisposableObject
Implements IDisposable
Inheritance
TelemetryDisposableObject
Derived
Implements

Constructors

TelemetryDisposableObject()

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