TryCreate Method

Uri.TryCreate Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a new Uri. Does not throw an exception if the Uri cannot be created.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member TryCreate(String, UriKind, Uri) Creates a new Uri using the specified String instance and a UriKind.
Public method Static member TryCreate(Uri, String, Uri) Creates a new Uri using the specified base and relative String instances.
Public method Static member TryCreate(Uri, Uri, Uri) Creates a new Uri using the specified base and relative Uri instances.
Top

Show:
© 2016 Microsoft