Skip to content

Commit 0f9a574

Browse files
authored
Merge pull request #93811 from aahill/patch-20
Removing duplicate step
2 parents 8c14133 + a511956 commit 0f9a574

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

articles/cognitive-services/Bing-News-Search/csharp.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: bing-news-search
1010
ms.topic: quickstart
11-
ms.date: 6/18/2019
11+
ms.date: 10/28/2019
1212
ms.author: aahi
1313
ms.custom: seodec2018
1414
---
@@ -101,25 +101,6 @@ Create a method named `BingNewsSearch` to perform the call to the API, and set t
101101
return searchResult;
102102
```
103103

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-
123104
## Process the response
124105

125106
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.

0 commit comments

Comments
 (0)