ReparsePointAware.OpenRead(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.