ToUri Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
ToUri(string, UriKind)
Converts the specified value to its equivalent Uri representation.
public static Uri ToUri(this string value, UriKind uriKind = UriKind.Absolute)
Parameters
valuestringThe string to extend.
uriKindUriKindSpecifies whether the URI string is a relative URI, absolute URI, or is indeterminate.
Returns
Exceptions
- ArgumentNullException
valuecannot be null.- ArgumentException
valuecannot be empty or consist only of white-space characters.