文字列クエリ = "123";
// Create a Bing container.
string rootUrl = "https://api.datamarket.azure.com/Bing/Search";
var bingContainer = new Bing.BingSearchContainer(new Uri(rootUrl));
// The market to use.
string market = "ar-XA";
// Get news for science and technology.
string newsCat = "rt_ScienceAndTechnology";
bingContainer.Credentials = new NetworkCredential("...", "...");
// 結果を 10 個に制限して、クエリを作成します。var newsQuery = bingContainer.News(query, null, market, null, null, null, null, newsCat, null); newsQuery = newsQuery.AddQueryOption("$top", 10);
//Run the query and display the results.
var newsResults = newsQuery.Execute();
foreach (var result in newsResults)
{
Console.WriteLine("{0}-{1}\n\t{2}",
result.Source, result.Title, result.Description);
}
なぜこれは日本のような他の言語では機能するのに、アラビア語でしか機能しないのですか?