Export (0) Print
Expand All

IFileReaderService.OpenFileFromSource Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Opens a file from the current directory.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

Stream OpenFileFromSource(
	string relativePath


Type: System.String

The file to open.

Return Value

Type: System.IO.Stream
A stream of the specified file.

relativePath is relative to the current directory.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft