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

Initializes a new instance of the AnyUriAnyUriAnyUri class with the specified URI.

Syntax

Public Sub New ( _
    uriString As String _
)
public AnyUri(
    string uriString
)
public:
AnyUri(
    String^ uriString
)
 

Parameters

uriString

Type: System.StringSystem.StringSystem::String^

The string representation of the URI.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionuriString is null a null reference (Nothing in Visual Basic) nullptr.
UriFormatExceptionUriFormatExceptionUriFormatExceptionuriString is not a valid URI.

Remarks

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