ReparsePointAware.RequireNoReparsePoints(String, Boolean) Method

Definition

Throws UnauthorizedAccessException if the canonical path is not the same as expectedPath.

public static void RequireNoReparsePoints (string expectedPath, bool asDirectory);
static member RequireNoReparsePoints : string * bool -> unit
Public Shared Sub RequireNoReparsePoints (expectedPath As String, asDirectory As Boolean)

Parameters

expectedPath
String

Checks that the expectedPath is not a reparse point.

asDirectory
Boolean

Specifies the check to verify a directory versus a file.

Exceptions

The given FileStream's canonical path is not the same as expectedPath.

Applies to