## Uri::GetComponents method


返回使用指定转义方式的当前对象表示的 URI 的指定组件。

```cpp
String System::Uri::GetComponents(UriComponents components, UriFormat format) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| components | UriComponents | 一个位掩码组合，由 [UriComponents](../../uricomponents/) 值组成，用于指定要返回的 URI 部分 |
| 格式 | UriFormat | 指定特殊字符的转义方式 |

### ReturnValue

请求的组件

## 另见

* Class [String](../../string/)
* Enum [UriComponents](../../uricomponents/)
* Enum [UriFormat](../../uriformat/)
* Class [Uri](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
