Share via


ReparsePointAware.DeleteFile(String) Method

Definition

Deletes the specified file. If the file's canonical path contains Windows Reparse Points, UnauthorizedAccessException is thrown and nothing is deleted.

public static void DeleteFile (string path);
static member DeleteFile : string -> unit
Public Shared Sub DeleteFile (path As String)

Parameters

path
String

Path to the file to delete.

Exceptions

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

Applies to