Click or drag to resize
ISafeDisposable Interface
Defines a property to call in a safe manner the Dispose method to release unmanaged resources.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public interface ISafeDisposable : IDisposable

The ISafeDisposable type exposes the following members.

Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Top
Properties
  NameDescription
Public propertyIsDisposable
Returns a boolean flag which indicates if it is safe to call Dispose on the object.
Top
Remarks
Use of Dispose method may be used carefully on some objects (because they may be shared in a scene graph for example). We may be sured that the object is no longer needed. Use the IsDisposable property of this interface to know if it is safe to explicitly dispose the object.
See Also