TelemetryDisposableObject Class
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.
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. |