NewsSearchClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The News Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see Searching the web for news.
public class NewsSearchClient : Microsoft.Rest.ServiceClient<Microsoft.Azure.CognitiveServices.Search.NewsSearch.NewsSearchClient>, IDisposable, Microsoft.Azure.CognitiveServices.Search.NewsSearch.INewsSearchClient
type NewsSearchClient = class
inherit ServiceClient<NewsSearchClient>
interface INewsSearchClient
interface IDisposable
Public Class NewsSearchClient
Inherits ServiceClient(Of NewsSearchClient)
Implements IDisposable, INewsSearchClient
- Inheritance
- Implements
Constructors
NewsSearchClient(DelegatingHandler[]) |
Initializes a new instance of the NewsSearchClient class. |
NewsSearchClient(HttpClient, Boolean) |
Initializes a new instance of the NewsSearchClient class. |
NewsSearchClient(HttpClientHandler, DelegatingHandler[]) |
Initializes a new instance of the NewsSearchClient class. |
NewsSearchClient(ServiceClientCredentials, DelegatingHandler[]) |
Initializes a new instance of the NewsSearchClient class. |
NewsSearchClient(ServiceClientCredentials, HttpClient, Boolean) |
Initializes a new instance of the NewsSearchClient class. |
NewsSearchClient(ServiceClientCredentials, HttpClientHandler, DelegatingHandler[]) |
Initializes a new instance of the NewsSearchClient class. |
Properties
Credentials |
Subscription credentials which uniquely identify client subscription. |
DeserializationSettings |
Gets or sets json deserialization settings. |
Endpoint |
Supported Cognitive Services endpoints (protocol and hostname, for example: "https://westus.api.cognitive.microsoft.com", "https://api.cognitive.microsoft.com"). |
FirstMessageHandler | (Inherited from ServiceClient<T>) |
HttpClient | (Inherited from ServiceClient<T>) |
HttpClientHandler | (Inherited from ServiceClient<T>) |
HttpMessageHandlers | (Inherited from ServiceClient<T>) |
News |
Gets the INewsOperations. |
SerializationSettings |
Gets or sets json serialization settings. |
UserAgent | (Inherited from ServiceClient<T>) |
Methods
CreateHttpHandlerPipeline(HttpClientHandler, DelegatingHandler[]) | (Inherited from ServiceClient<T>) |
Dispose() | (Inherited from ServiceClient<T>) |
Dispose(Boolean) | (Inherited from ServiceClient<T>) |
InitializeHttpClient(HttpClient, HttpClientHandler, DelegatingHandler[]) | (Inherited from ServiceClient<T>) |
InitializeHttpClient(HttpClientHandler, DelegatingHandler[]) | (Inherited from ServiceClient<T>) |
SetRetryPolicy(RetryPolicy) | (Inherited from ServiceClient<T>) |
SetUserAgent(String, String) | (Inherited from ServiceClient<T>) |
SetUserAgent(String) | (Inherited from ServiceClient<T>) |
Applies to
Azure SDK for .NET