File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
articles/cognitive-services/Bing-News-Search Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ manager: nitinme
8
8
ms.service : cognitive-services
9
9
ms.subservice : bing-news-search
10
10
ms.topic : quickstart
11
- ms.date : 6/18 /2019
11
+ ms.date : 10/28 /2019
12
12
ms.author : aahi
13
13
ms.custom : seodec2018
14
14
---
@@ -101,25 +101,6 @@ Create a method named `BingNewsSearch` to perform the call to the API, and set t
101
101
return searchResult ;
102
102
```
103
103
104
- 3 . Create the search result object , and extract the Bing HTTP headers . Then return `searchResult `.
105
-
106
- ```csharp
107
- // Create the result object for return
108
- var searchResult = new SearchResult ()
109
- {
110
- jsonResult = json ,
111
- relevantHeaders = new Dictionary <String , String >()
112
- };
113
-
114
- // Extract Bing HTTP headers
115
- foreach (String header in response .Headers )
116
- {
117
- if (header .StartsWith (" BingAPIs-" ) || header .StartsWith (" X-MSEdge-" ))
118
- searchResult .relevantHeaders [header ] = response .Headers [header ];
119
- }
120
- return searchResult ;
121
- ```
122
-
123
104
## Process the response
124
105
125
106
1 . In the main method , call `BingNewsSearch ()` and store the returned response . Then deserialize the JSON into an object . You can then view the values of the response .
You can’t perform that action at this time.
0 commit comments