IOHelperGetFileName Method

Returns the file name and extension of the specified path string.

Definition

Namespace: Configuration.Helper
Assembly: Configuration.Helper (in Configuration.Helper.dll) Version: 2.0.5
C#
public static string GetFileName(
	string path
)

Parameters

path  String
The path string from which to obtain the file name and extension.

Return Value

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 an empty string.

See Also