UriParser.GetComponents Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the components from a URI.
Assembly: System (in System.dll)
Parameters
- uri
- Type: System.Uri
The Uri to parse.
- components
- Type: System.UriComponents
The UriComponents to retrieve from uri.
- format
- Type: System.UriFormat
One of the UriFormat values that controls how special characters are escaped.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | format is invalid - or - components is not a combination of valid UriComponents values. |
| InvalidOperationException | uri requires user-driven parsing - or - uri is not an absolute URI. Relative URIs cannot be used with this method. |
Show: