Taal

Extensions.NormalizePath(String) Methode

Definitie

Normaliseer het door geschreven pad naar het OS-pad.

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

Parameters

ambiguousPath
String

Geschreven pad.

Retouren

Pad uitgedrukt als OS-pad.

Opmerkingen

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

Van toepassing op