Constructors: NewSafeFileHandle

NewSafeFileHandle

Initializes a new instance of the SafeFileHandle class.



 Public Function NewSafeFileHandle(
	  ByVal PreexistingHandle As Long,
	  ByVal OwnsHandle As Boolean ) As SafeFileHandle

Parameters

PreexistingHandle
[ByVal] Long. An Long pointer that represents the pre-existing handle to use.
OwnsHandle
[ByVal] Boolean. True to reliably release the handle during the finalization phase; False to prevent reliable release (not recommended).

Return Values

SafeFileHandle -  A new instance of the SafeFileHandle class.

See Also

Project CorLib Overview

Class Constructors Overview