Utilities.ValidateUri(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if the given string represents a valid uri
public static void ValidateUri(string uri, string argName = "Uri");
static member ValidateUri : string * string -> unit
Public Sub ValidateUri (uri As String, Optional argName As String = "Uri")
Parameters
- uri
- String
The string representing a uri
- argName
- String
The name of the argument to report as invalid