Get file name from URI

  • Gets file name from URI (URI string).
Uri uri = new Uri("http://server/folder/filename.ext");
string filename = Path.GetFileName(uri.LocalPath);
programming/net/filenamefromuri.txt · Last modified: 2018-06-21 19:48 (external edit)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0