UtilFileSystemWindowsPathToUriPath Method
Converts a Microsoft Windows Path string to a fully qualified URI file path.
For example, "C:\Music\100% Greatest Hits\Michael+Jackson\#1-Black Or White.mp3" is converted to:
"file:///C:/Music/100%25%20Greatest%20Hits/Michael+Jackson/%231-Black%20Or%20White.mp3".
WindowsPathToUriPath(String) function is provided because
none of the
Uri constructors correctly handles certain paths.
Namespace: DevCase.Core.IO.FileSystemAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string WindowsPathToUriPath(
string windowsPath
)
Public Shared Function WindowsPathToUriPath (
windowsPath As String
) As String
Dim windowsPath As String
Dim returnValue As String
returnValue = UtilFileSystem.WindowsPathToUriPath(windowsPath)
public:
static String^ WindowsPathToUriPath(
String^ windowsPath
)
static member WindowsPathToUriPath :
windowsPath : string -> string
No code example is currently available or this language may not be supported.
- windowsPath String
-
The file or directory path to convert.
String
The resulting URI file path.
This is a code example.
No code example is currently available or this language may not be supported.
Dim windowsPath As String = "C:\Music\100% Greatest Hits\Michael+Jackson\#1-Black Or White.mp3"
Dim uriPath As String = WindowsPathToUriPath(windowsPath)
Debug.WriteLine(uriPath)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.