Uri.TryCreate Method (Uri, String, Uri%)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a new Uri using the specified base and relative String instances.
Assembly: System (in System.dll)
Parameters
- baseUri
- Type: System.Uri
The base Uri.
- relativeUri
- Type: System.String
The relative Uri, represented as a String, to add to the base Uri.
- result
- Type:
System.Uri
%
When this method returns, contains a Uri constructed from baseUri and relativeUri. This parameter is passed uninitialized.
Return Value
Type: System.BooleanA Boolean value that is true if the Uri was successfully created; otherwise, false.
Show: