Path.GetFileNameWithoutExtension(string)

Description

Returns the file base component of the specified path string without the extension.

The return value consists of the string returned by GetFileName(), minus the extension separator character and extension.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答