Share via


ReparsePointAware.OpenRead(String) Method

Definition

Opens an existing file for reading. If the file's canonical path contains Windows Reparse Points, UnauthorizedAccessException is thrown.

public static System.IO.FileStream OpenRead (string path);
static member OpenRead : string -> System.IO.FileStream
Public Shared Function OpenRead (path As String) As FileStream

Parameters

path
String

Full path to the target file.

Returns

A file stream to the file being opened. Caller is responsible for disposing of the file stream when operations are complete.

Exceptions

The path contains Windows Reparse Points or otherwise cannot be accessed.

Applies to