Url FileName Property C# API
Gets the name of the file at the end of the path in this Url.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.7.98 (1.0.0.0)
Syntax

public string FileName { get; }

Field Value

The name of the file at the end of the path in this Url, or an empty string if this Url has no path component or the path ends with a / character.
Examples

The following example demonstrates getting the file name of different Url objects.
new Url("http://www.myCompany.co.uk/").FileName);  // returns "" 
new Url("http://www.myCompany.co.uk/index.php").FileName);  // returns "index.php" 
new Url("http://www.myCompany.co.uk/directory/subdirectory/").FileName);  // returns ""
See Also