Taal

PathUtils.NormalizePath(String) Methode

Definitie

Normaliseert het geautoriseerde pad naar het OS-compatibele pad.

public static string NormalizePath(string ambiguousPath);
static member NormalizePath : string -> string
Public Shared Function NormalizePath (ambiguousPath As String) As String

Parameters

ambiguousPath
String

authoredPath.

Retouren

pad uitgedrukt als OS-pad.

Opmerkingen

Het pad komt uit geschreven content die niet weet op welk besturingssysteem het draait. Deze methode behandelt / en \ beide als separatoren, ongeacht het besturingssysteem; voor Windows betekent dat dat alle '/'-tekens worden veranderd in '/', en voor Linux/Mac '\' naar '/'. Dit stelt de auteur in staat om .. /foo.lg of .. \foo.lg als equivalenten voor importeren.

Van toepassing op