PathGetFileName Method (String, Boolean) |
[AlphaFS] Returns the file name and extension of the specified path string.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static string GetFileName(
string path,
bool checkInvalidPathChars
)
Public Shared Function GetFileName (
path As String,
checkInvalidPathChars As Boolean
) As String
public:
static String^ GetFileName(
String^ path,
bool checkInvalidPathChars
)
static member GetFileName :
path : string *
checkInvalidPathChars : bool -> string
Parameters
- path
- Type: SystemString
The path string from which to obtain the file name and extension. - checkInvalidPathChars
- Type: SystemBoolean
will check path for invalid path characters.
Return Value
Type:
String
The characters after the last directory character in
path. If the last character of
path is a
directory or volume separator character, this method returns
string.Empty. If path is null, this method returns null.
Exceptions See Also