GetFileNameWithoutExtension Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

'Declaration
Public Shared Function GetFileNameWithoutExtension ( _
	path As String _
) As String

Parameters

path
Type: System..::..String
The path of the file.

Return Value

Type: System..::..String
The string returned by GetFileName, minus the last period (.) and all characters following it.

This method does not verify that the path or file name exists.

Show: