ReparsePointAware.RequireNoReparsePoints(String, Boolean) 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.
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.