ToUri Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
ToUri(IDecorator<string>, UriKind)
public static Uri ToUri(this IDecorator<string> decorator, UriKind uriKind = UriKind.Absolute)
Parameters
decoratorIDecorator<string>The IDecorator<T> to extend.
uriKindUriKindSpecifies whether the URI string is a relative URI, absolute URI, or is indeterminate.
Returns
Exceptions
- ArgumentNullException
decoratorcannot be null.- ArgumentNullException
The enclosed string of the specified
decoratorcannot be null.- ArgumentException
The enclosed string of the specified
decoratorcannot be empty or consist only of white-space characters.