Skip to content

Commit d31e798

Browse files
authored
Merge pull request #190 from aahill/image-client-update
[Bing image Search] client update
2 parents fbcd745 + c34c22f commit d31e798

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

BingSearchv7/BingImageSearch/quickstart/bing-image-search-quickstart-csharp.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ static void Main(string[] args)
1515
// the image search term used in the query
1616
string searchTerm = "canadian rockies";
1717
//initialize the client
18-
var client = new ImageSearchAPI(new ApiKeyServiceClientCredentials(subscriptionKey));
18+
//NOTE: If you're using version 1.2.0 or below for the Bing Image Search client library,
19+
// use ImageSearchAPI() instead of ImageSearchClient() to initialize your search client.
20+
var client = new ImageSearchClient(new ApiKeyServiceClientCredentials(subscriptionKey));
1921

2022
Console.WriteLine("This application will send an HTTP request to the Bing Image Search API for {0} and print the response.", searchTerm);
2123

0 commit comments

Comments
 (0)