Gets the filename from specified uri.

Namespace: FirstFloor.Documents
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)

Syntax

C#
public static string GetFileName(
	this Uri uri
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetFileName ( _
	uri As Uri _
) As String
Visual C++
[ExtensionAttribute]
public:
static String^ GetFileName(
	Uri^ uri
)

Parameters

uri
Type: System..::..Uri
The URI.

Return Value

The filename.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Uri. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also