コード例 #1
0
 /// <summary>
 /// overloaded to create typed version of Query
 /// </summary>
 /// <param name="feedQuery"></param>
 /// <returns>KeywordsFeed</returns>
 public KeywordsFeed Query(KeywordsQuery feedQuery)
 {
     return base.Query(feedQuery) as KeywordsFeed;
 }
コード例 #2
0
        public void QueryKeywords()
        {
            WebmasterToolsService service = new WebmasterToolsService(this.ApplicationName);
            service.Credentials = new GDataCredentials(this.userName, this.passWord);

            KeywordsQuery feedQuery = new KeywordsQuery(KeywordsQuery.CreateCustomUri("http%3A%2F%2Fwww%2Eexample%2Ecom%2F"));
            KeywordsFeed feed = service.Query(feedQuery);

            Assert.GreaterOrEqual(feed.Entries.Count, 0);

            foreach (KeywordsEntry entry in feed.Entries)
            {
                Assert.IsNotNull(entry.Id);
            }
        }
コード例 #3
0
 /// <summary>
 /// overloaded to create typed version of Query
 /// </summary>
 /// <param name="feedQuery"></param>
 /// <returns>KeywordsFeed</returns>
 public KeywordsFeed Query(KeywordsQuery feedQuery)
 {
     return(base.Query(feedQuery) as KeywordsFeed);
 }