## Path::HasExtension method


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

```cpp
static bool System::IO::Path::HasExtension(const String &path)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 待检查的路径 |

### ReturnValue

如果 **path** 引用的文件带有扩展名，则为 true；否则为 false

## 另见

* Class [String](../../../system/string/)
* Class [Path](../)
* Namespace [System::IO](../../)
* Library [Aspose.Font for C++](../../../)
