public static void ValidateUrl(string name, string url) { Uri uri; CmdletPipeBind <CmdletObject> .ValidateString(name, url); try { uri = new Uri(url); } catch (UriFormatException) { throw new ArgumentException(name); } CmdletPipeBind <CmdletObject> .CheckUrlSchema(name, uri); }
public static void ValidateUri(string name, Uri uri) { CmdletPipeBind <CmdletObject> .CheckUrlSchema(name, uri); }