|
FilePathGetFileNameWithoutExtension Method
|
Gets the file name without extension from the specified file path.
Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntaxpublic static string GetFileNameWithoutExtension(
string filePath
)
Public Shared Function GetFileNameWithoutExtension (
filePath As String
) As String
public:
static String^ GetFileNameWithoutExtension(
String^ filePath
)
static member GetFileNameWithoutExtension :
filePath : string -> string
GSF.IO.FilePath.GetFileNameWithoutExtension = function(filePath);
View SourceParameters
- filePath String
- The file path from which the file name is to be obtained.
Return Value
StringFile name without the extension if the file path has it; otherwise empty string.
See Also