Share via


ReparsePointAware.OpenWrite(String) Method

Definition

Opens an existing file or creates a new file for writing. If the file's canonical path contains Windows Reparse Points, UnauthorizedAccessException is thrown.

public static System.IO.FileStream OpenWrite (string path);
static member OpenWrite : string -> System.IO.FileStream
Public Shared Function OpenWrite (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