## Uri::GetComponents method


Returns the specified components of the URI represented by the current object using the specified escaping.

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


| Parameter | Type | Description |
| --- | --- | --- |
| components | UriComponents | A bitwise combination of the UriComponents values that specifies which parts of URI to return |
| format | UriFormat | Specifies how the special characters are escaped |

### ReturnValue

The requested components

## See Also

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