CVB.Net 14.0
SafeCvbObjectHandle Class Reference

Safe-destruct handle wrapper for IntPtr-based resources that are pseudo COM objects released through ReleaseObject More...

Inherits SafeHandle.

Inherited by SafeBarcodeReaderConfigHandle, SafeColorClassifierHandle, SafeColorFilterHandle, SafeColorTrainingSetHandle, SafeFoundationHandle, SafeLightMeterHandle, SafeMantoClassifierHandle, SafeMantoImageListHandle, SafeMinosClassifierHandle, SafeMinosTrainingSetHandle, SafePolimagoObjectHandle, SafeProjectionHandle, SafeShapeFinderClassifierHandle, SafeSilDataTypeHandle, and SafeSilHandle.

Public Member Functions

 SafeCvbObjectHandle (IntPtr handle)
 Constructor More...
 

Protected Member Functions

override bool ReleaseHandle ()
 Release internally memorized handle. More...
 

Properties

override bool IsInvalid [get]
 Verify internally memorized handle for validity.
 
IntPtr NativeHandle [get]
 Internally stored handle.
 

Detailed Description

Safe-destruct handle wrapper for IntPtr-based resources that are pseudo COM objects released through ReleaseObject

Constructor & Destructor Documentation

◆ SafeCvbObjectHandle()

SafeCvbObjectHandle ( IntPtr  handle)

Constructor

Parameters
handlenative handle for which to create the image object

Member Function Documentation

◆ ReleaseHandle()

override bool ReleaseHandle ( )
protected

Release internally memorized handle.

Returns