AbstractPath.WithExtension
AbstractPath.WithExtension method
返回一个新的 AbstractPath,其文件扩展名已更改为指定的值。
public virtual AbstractPath WithExtension(string newExtension)
| 参数 | 类型 | 描述 |
|---|---|---|
| newExtension | String | 一个新的扩展名。 |
返回值
一个新的 AbstractPath,指向同一目录中的文件,但使用新的扩展名。
备注
通常,继承者不应覆盖此方法。默认实现会替换扩展名并调用 WithLocation。
另见
- class AbstractPath
- namespace Aspose.Gis
- assembly Aspose.GIS