SafeIntPtrHandle Class

CVB.Net Documentation
Safe-destruct handle wrapper for IntPtr-based resources.
Inheritance Hierarchy

SystemObject
  System.Runtime.ConstrainedExecutionCriticalFinalizerObject
    System.Runtime.InteropServicesSafeHandle
      Stemmer.Cvb.Runtime.InteropServicesSafeIntPtrHandle

Namespace:  Stemmer.Cvb.Runtime.InteropServices
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public class SafeIntPtrHandle : SafeHandle

The SafeIntPtrHandle type exposes the following members.

Constructors

  NameDescription
Public methodSafeIntPtrHandle
Constructor
Top
Properties

  NameDescription
Public propertyIsClosed
Gets a value indicating whether the handle is closed.
(Inherited from SafeHandle.)
Public propertyIsInvalid
Verify internally memorized handle for validity.
(Overrides SafeHandleIsInvalid.)
Public propertyNativeHandle
Internally stored handle.
Top
Methods

  NameDescription
Public methodClose
Marks the handle for releasing and freeing resources.
(Inherited from SafeHandle.)
Public methodDangerousAddRef
Manually increments the reference counter on SafeHandle instances.
(Inherited from SafeHandle.)
Public methodDangerousGetHandle
Returns the value of the handle field.
(Inherited from SafeHandle.)
Public methodDangerousRelease
Manually decrements the reference counter on a SafeHandle instance.
(Inherited from SafeHandle.)
Public methodDispose
Releases all resources used by the SafeHandle class.
(Inherited from SafeHandle.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation.
(Inherited from SafeHandle.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Frees all resources associated with the handle.
(Inherited from SafeHandle.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodReleaseHandle
Release internally memorized handle.
(Overrides SafeHandleReleaseHandle.)
Protected methodSetHandle
Sets the handle to the specified pre-existing handle.
(Inherited from SafeHandle.)
Public methodSetHandleAsInvalid
Marks a handle as no longer used.
(Inherited from SafeHandle.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields

  NameDescription
Protected fieldhandle
Specifies the handle to be wrapped.
(Inherited from SafeHandle.)
Top
See Also

Reference