Returns the name and extension parts of the given path.
[Visual Basic] Public Shared Function GetFileNameFromPath( _ ByVal path As String _ ) As String [C#] public static string GetFileNameFromPath( string path ); [C++] public: static String* GetFileNameFromPath( String* path ); [JScript] public static function GetFileNameFromPath( path : String ) : String;
The name and extension parts of the given path.
Exception Type | Condition |
---|---|
ArgumentException | path is empty or contains only whitespaces. |