File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Tutorials/Bing-Visual-Search Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ static void Main(string[] args)
1313 {
1414 String subscriptionKey = "YOUR-ACCESS-KEY" ;
1515
16- insightsToken = ImageResults ( subscriptionKey ) ;
16+ var insightsToken = ImageResults ( subscriptionKey ) ;
1717
1818 VisualSearchInsightsToken ( subscriptionKey , insightsToken ) ;
1919
@@ -29,7 +29,7 @@ private static String ImageResults(String subKey)
2929 String insightTok = "None" ;
3030 try
3131 {
32- var client = new ImageSearchAPI ( new Microsoft . Azure . CognitiveServices . Search . ImageSearch . ApiKeyServiceClientCredentials ( subKey ) ) ; //
32+ var client = new ImageSearchClient ( new Microsoft . Azure . CognitiveServices . Search . ImageSearch . ApiKeyServiceClientCredentials ( subKey ) ) ; //
3333 var imageResults = client . Images . SearchAsync ( query : "canadian rockies" ) . Result ;
3434 Console . WriteLine ( "Search images for query \" canadian rockies\" " ) ;
3535
@@ -74,7 +74,7 @@ private static String ImageResults(String subKey)
7474
7575 public static void VisualSearchInsightsToken ( string subscriptionKey , string insightsTok )
7676 {
77- var client = new VisualSearchAPI ( new Microsoft . Azure . CognitiveServices . Search . VisualSearch . ApiKeyServiceClientCredentials ( subscriptionKey ) ) ;
77+ var client = new VisualSearchClient ( new Microsoft . Azure . CognitiveServices . Search . VisualSearch . ApiKeyServiceClientCredentials ( subscriptionKey ) ) ;
7878
7979 try
8080 {
You can’t perform that action at this time.
0 commit comments