Skip to content

Commit 5f8c710

Browse files
authored
Merge pull request #189 from attrib75/patch-1
Bing Web Search SDK - Show how to add custom API endpoint
2 parents d31e798 + 063b7d0 commit 5f8c710

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

BingSearchv7/BingWebSearch/WebSearchSamples.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public class WebSearchSamples
1414
public static async void WebSearchResultTypesLookup(string subscriptionKey)
1515
{
1616
var client = new WebSearchClient(new ApiKeyServiceClientCredentials(subscriptionKey));
17-
17+
// You might need to enter your custom endpoint from the Azure portal here
18+
// client.Endpoint = "<Your Endpoint Here>";
1819
try
1920
{
2021
var webData = await client.Web.SearchAsync(query: "Xbox");

0 commit comments

Comments
 (0)