Class UriConverter
This utility class is designed to make System.Uri related conversions easier to work with.
Inheritance
System.Object
UriConverter
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public static class UriConverter
Methods
| Improve this DocFromProtocolRelativeUri(String, UriScheme)
Converts the specified value
of a protocol-relative System.String to its equivalent System.Uri.
Declaration
public static Uri FromProtocolRelativeUri(string value, UriScheme protocol)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The System.String to be converted. |
UriScheme | protocol | The desired protocol of the |
Returns
Type | Description |
---|---|
System.Uri | An System.Uri that is equivalent to |
FromProtocolRelativeUri(String, UriScheme, String)
Converts the specified value
of a protocol-relative System.String to its equivalent System.Uri.
Declaration
public static Uri FromProtocolRelativeUri(string value, UriScheme protocol, string relativeReference)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The System.String to be converted. |
UriScheme | protocol | The desired protocol of the |
System.String | relativeReference | The relative reference that |
Returns
Type | Description |
---|---|
System.Uri | An System.Uri that is equivalent to |