UriParser::GetComponents Method (Uri^, UriComponents, UriFormat)
.NET Framework (current version)
Gets the components from a URI.
Assembly: System (in System.dll)
protected: virtual String^ GetComponents( Uri^ uri, UriComponents components, UriFormat format )
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 | |
| InvalidOperationException | uri requires user-driven parsing - or - uri is not an absolute URI. Relative URIs cannot be used with this method. |
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: