System.IO.FileInfo.OpenRead Method

Creates a read-only System.IO.FileStream.

Syntax

public FileStream OpenRead ()

Returns

A new read-only System.IO.FileStream object.

Remarks

This method returns a read-only System.IO.FileStream object with the System.IO.FileShare mode set to FileShare.Read.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0