Class UriStringOptions
- Namespace
- Cuemon.Text
- Assembly
- Cuemon.Core.dll
Configuration options for FromUri().
public class UriStringOptions : IValidatableParameterObject, IParameterObject
- Inheritance
-
UriStringOptions
- Implements
Constructors
UriStringOptions()
Initializes a new instance of the UriStringOptions class.
public UriStringOptions()
Remarks
The following table shows the initial property values for an instance of UriStringOptions.
Property | Initial Value |
---|---|
Kind | Absolute |
Schemes | AllUriSchemes |
Properties
AllUriSchemes
Gets all supported URI schemes.
public static IEnumerable<UriScheme> AllUriSchemes { get; }
Property Value
- IEnumerable<UriScheme>
A sequence of all supported URI schemes.
Kind
Gets or sets the kind of the URI.
public UriKind Kind { get; set; }
Property Value
- UriKind
The kind of the URI.
Schemes
Gets or sets a collection of UriScheme values that determines the outcome when parsing a URI.
public IList<UriScheme> Schemes { get; set; }
Property Value
Methods
ValidateOptions()
Determines whether the public read-write properties of this instance are in a valid state.
public void ValidateOptions()
Remarks
This method is expected to throw exceptions when one or more conditions fails to be in a valid state.
Exceptions
- InvalidOperationException
Schemes cannot be null.