AnyUri Constructor (AnyUri, string)AnyUri Constructor (AnyUri, String)AnyUri Constructor (AnyUri^, String^)

Initializes a new instance of the AnyUriAnyUriAnyUri class from the specified base URI and relative URI string.

Syntax

Public Sub New ( _
    baseUri As AnyUri, _
    relative As String _
)
public AnyUri(
    AnyUri baseUri,
    string relative
)
public:
AnyUri(
    AnyUri^ baseUri, 
    String^ relative
)
 

Parameters

baseUri

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

The base URI.

relative

Type: System.StringSystem.StringSystem::String^

The string representation of the relative URI.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionbaseUri or relative is null a null reference (Nothing in Visual Basic) nullptr.
UriFormatExceptionUriFormatExceptionUriFormatExceptionrelative is not a valid URI.

Remarks

If relative is not a valid URI, then the string is percent encoded and another attempt is made to parse it.