コード例 #1
0
        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);
        }
コード例 #2
0
 public static void ValidateUri(string name, Uri uri)
 {
     CmdletPipeBind <CmdletObject> .CheckUrlSchema(name, uri);
 }