Constructors: NewFileStreamWithHandle

NewFileStreamWithHandle

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



 Public Function NewFileStreamWithHandle(
	  ByVal Handle As SafeFileHandle,
	  ByVal Access As FileAccess,
	  Optional ByVal BufferSize As Long = 4096 ) As FileStream

Parameters

Handle
[ByVal] SafeFileHandle. A SafeFileHandle to the already opened filed.
Access
[ByVal] FileAccess. The access allowed to the file for this FileStream.
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.

See Also

Project CorLib Overview

Class Constructors Overview