Constructors: NewFileStreamFromHandle

NewFileStreamFromHandle

Returns a new FileStream to access a file other than that on disk, such as pipes.



 Public Function NewFileStreamFromHandle(
	  ByVal Handle As Long,
	  ByVal Access As FileAccess,
	  Optional ByVal OwnsHandle As Boolean = True,
	  Optional ByVal BufferSize As Long = 4096 ) As FileStream

Parameters

Handle
[ByVal] Long. The handle to the already opened filed.
Access
[ByVal] FileAccess. The access allowed to the file for this FileStream.
OwnsHandle
[ByVal] Optional. Boolean. Determines if the FileStream object is responsible for closing the file passed in.  

Default: True

BufferSize
[ByVal] Optional. Long. The number of bytes used to cache reads and writes from the physical file.  

Default: 4096

Return Values

FileStream -  The new FileStream opened to the specified file.

Remarks

See Also

Project VBCorLib Overview Class Constructors Overview Constructors Properties Constructors Methods NewFileStream NewFormatException