Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Parse

static func Parse(text: string) -> Result<Uri, UriError>

Declaring type: Uri
Module: System
Assembly: System.Runtime.dll
Source file: Uri.rvn

Validates a relative or absolute URI reference without normalization.

Parameters

Name Type Description
text String Escaped ASCII reference; empty text is a valid relative reference.

Return value

Result<Uri, UriError>

Ok with Uri, or InvalidFormat, UnsupportedAuthority for bracketed forms, or TooLong.