AnyUri Constructor (Uri)AnyUri Constructor (Uri)AnyUri Constructor (Uri^)

Initializes a new instance of the AnyUriAnyUriAnyUri class from a UriUriUri.

Syntax

Public Sub New ( _
    uri As Uri _
)
public AnyUri(
    Uri uri
)
public:
AnyUri(
    Uri^ uri
)
 

Parameters

uri

Type: System.UriSystem.UriSystem::Uri^

The URI.

Exceptions

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

Remarks

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