System::IO::Path::HasExtension 方法

Path::HasExtension method

确定指定的路径是否引用具有扩展名的文件。

static bool System::IO::Path::HasExtension(const String &path)
ParameterType描述
路径const String&要检查的路径

ReturnValue

如果 path 引用的是带扩展名的文件则为 true,否则为 false

另见