當前位置: 首頁>>代碼示例>>C#>>正文


C# Uri.ParseKeyWords方法代碼示例

本文整理匯總了C#中System.Uri.ParseKeyWords方法的典型用法代碼示例。如果您正苦於以下問題:C# Uri.ParseKeyWords方法的具體用法?C# Uri.ParseKeyWords怎麽用?C# Uri.ParseKeyWords使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Uri的用法示例。


在下文中一共展示了Uri.ParseKeyWords方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: ParseKeyWordsAolDotComTest

        public void ParseKeyWordsAolDotComTest()
        {
            Uri uri = new Uri("http://search.aol.com/aol/search?invocationType=comsearch30&query=termtie+companies+springboro&do=Search");
            string actual = uri.ParseKeyWords();
            Assert.AreEqual("termtie companies springboro", actual);

            uri = new Uri("http://aim.search.aol.com/search/search?query=41.pestthreat.com&invocationType=TB50TRie7");
            actual = uri.ParseKeyWords();
            Assert.AreEqual("41.pestthreat.com", actual);

            uri = new Uri("http://aolsearch.aol.com/aol/search?invocationType=topsearchbox.search&query=termidor");
            actual = uri.ParseKeyWords();
            Assert.AreEqual("termidor", actual);
        }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:14,代碼來源:UriExtensionsTest.cs

示例2: ParseKeyWordsNetscapeDotComTest

 public void ParseKeyWordsNetscapeDotComTest()
 {
     Uri uri = new Uri("http://search.hp.netscape.com/hp/search?query=28.PestThreat.com&st=webresults&fromPage=HPResultsT");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("28.PestThreat.com", actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs

示例3: ParseKeyWordsInformationDotComTest

 public void ParseKeyWordsInformationDotComTest()
 {
     Uri uri = new Uri("http://searchportal.information.com/?epl=01510006R1UMXGYWVlEFDVFQClNQAVcNVA9FUVgMAFxbVllZVFhBURBVUAtLGgJfD0VLAAdBAlw5RwxGChEORUBUWUZuCFRdDGdVBF1QCF4FRUsAB0ECXDlDGkVSXA1cW1MeVW4MUQlTDwFXARIKRz0RWQsNDlU&query=Termites");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("Termites", actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs

示例4: ParseKeyWordsEntryNotFoundDotComTest

 public void ParseKeyWordsEntryNotFoundDotComTest()
 {
     Uri uri = new Uri("http://wwww23.entry-not-found.com/search?qo=www.51.pest%2520threat.com&rn=AHbSGJpsHOpxcb_");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("www.51.pest%20threat.com", actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs

示例5: ParseKeyWordsEmptyUriTest

 public void ParseKeyWordsEmptyUriTest()
 {
     Uri uri = new Uri(string.Empty, UriKind.Relative);
     string actual = uri.ParseKeyWords();
     Assert.AreEqual(null, actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs

示例6: ParseKeyWordsAttDotNetTest

 public void ParseKeyWordsAttDotNetTest()
 {
     Uri uri = new Uri("http://my.att.net/s/s.dll?num=10&spage=search%2Fresultshome1.htm&searchType=web&string=16+Pest+Threats.com&where=Location+%28e.g.+Address%29&sm.x=7&sm.y=11");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("16 Pest Threats.com", actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs

示例7: ParseKeyWordsYellowpagesDotComTest

 public void ParseKeyWordsYellowpagesDotComTest()
 {
     Uri uri = new Uri("http://www.yellowpages.com/Fairfax-VA/Pest-Control-Services/city-Fairfax?search_terms=Pest+Control");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("Pest Control", actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs

示例8: ParseKeyWordsYahooDotComTest

        public void ParseKeyWordsYahooDotComTest()
        {
            Uri uri = new Uri("http://search.yahoo.com/search?fr=cb-hp06&type=advisor&ei=UTF-8&p=13%2epest%20threat%2ecom");
            string actual = uri.ParseKeyWords();
            Assert.AreEqual("13.pest threat.com", actual);

            uri = new Uri("http://yp.yahoo.com/py/ypResults.py?&city=Gaithersburg&state=MD&zip=20882&uzip=20882&msa=8840&slt=39.23&sln=-77.1624&cs=5&stx=8109702&stp=y&desc=Pest+Control&offset=0&FBoffset=20&stat=ClkNxtUpper");
            actual = uri.ParseKeyWords();
            Assert.AreEqual("Pest Control", actual);
        }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:10,代碼來源:UriExtensionsTest.cs

示例9: ParseKeyWordsVerizonDotNetTest

 public void ParseKeyWordsVerizonDotNetTest()
 {
     Uri uri = new Uri("http://wwwz.websearch.verizon.net/search?qo=www.pest%2520threat.com&rn=yl1ciCfHRyzBX_A");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("www.pest%20threat.com", actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs

示例10: ParseKeyWordsSwitchboardDotComTest

 public void ParseKeyWordsSwitchboardDotComTest()
 {
     Uri uri = new Uri("http://switchboard.com/swbd.main/dir/results.htm?cid=&MEM=1&ypcobrand=1&PR=&ST=&inputwhat_dirty=1&KW=tabor+pest+control&initial=&inputwhere_dirty=1&LO=dothan%2C+al+36303&SD=-1&semChannelId=&semSessionId=&search.x=58&search.y=15");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("tabor pest control", actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs

示例11: ParseKeyWordsPestanalysisComTest

 public void ParseKeyWordsPestanalysisComTest()
 {
     Uri uri = new Uri("http://46.pestanalysis.com/search.php?d=pestanalysis.com&cachekey=1210547694&rc=true&term=Pest+analysis&append=");
     string actual = uri.ParseKeyWords();
     Assert.AreEqual("Pest analysis", actual);
 }
開發者ID:asunchu,項目名稱:Rolcore,代碼行數:6,代碼來源:UriExtensionsTest.cs


注:本文中的System.Uri.ParseKeyWords方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。