Class DisposableObject
Represents a class which has managed or unmanaged resources.
Inheritance
System.Object
DisposableObject
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FaceRecognitionDotNet
Assembly: FaceRecognitionDotNet.dll
Syntax
public abstract class DisposableObject : IDisposable
Properties
| Improve this Doc View SourceIsDisposed
Gets a value indicating whether this instance has been disposed.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if this instance has been disposed; otherwise, false. |
Methods
| Improve this Doc View SourceDispose()
Releases all resources used by this DisposableObject.
Declaration
public void Dispose()
DisposeManaged()
Releases all managed resources.
Declaration
protected virtual void DisposeManaged()
DisposeUnmanaged()
Releases all unmanaged resources.
Declaration
protected virtual void DisposeUnmanaged()
ThrowIfDisposed()
If this object is disposed, then System.ObjectDisposedException is thrown.
Declaration
public void ThrowIfDisposed()
Implements
System.IDisposable