Del via


PhysicalFileInfo.CreateReadStream Method

Definition

Returns the file contents as a read-only stream.

public:
 virtual System::IO::Stream ^ CreateReadStream();
public System.IO.Stream CreateReadStream ();
abstract member CreateReadStream : unit -> System.IO.Stream
override this.CreateReadStream : unit -> System.IO.Stream
Public Function CreateReadStream () As Stream

Returns

A read-only stream.

Implements

Remarks

The caller should dispose the stream when done with it.

Applies to