- uri
- The URI to parse.
- components
- The UriComponents to retrieve from uri.
- format
- One of the UriFormat values that controls how special characters are escaped.
A string that contains the components.
Use the UriParser.GetComponents(Uri, UriComponents, UriFormat) method to determine the value of various parts of the URI, such as the UriComponents.Scheme, UriComponents.Host, or UriComponents.Port.
The components are returned in the order that they appear in the URI. For example, if UriComponents.Scheme is specified, it appears first.