C# Класс BuildIt.CognitiveServices.WebSearchAPIV5Extensions

Extension methods for WebSearchAPIV5.
Показать файл Открыть проект

Открытые методы

Метод Описание
Search ( this operations, double count = 10, double offset, string mkt = "en-us", string safesearch = "Moderate", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void

Get web, image, news, & videos results for a given query.

SearchAsync ( this operations, double count = 10, double offset, string mkt = "en-us", string safesearch = "Moderate", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task

Get web, image, news, & videos results for a given query.

Описание методов

Search() публичный статический Метод

Get web, image, news, & videos results for a given query.
public static Search ( this operations, double count = 10, double offset, string mkt = "en-us", string safesearch = "Moderate", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
count double /// The number of search results to return in the response. The actual number /// delivered may be less than requested. ///
offset double /// The zero-based offset that indicates the number of search results to skip /// before returning results. ///
mkt string /// The market where the results come from. Typically, this is the country /// where the user is making the request from; however, it could be a /// different country if the user is not located in a country where Bing /// delivers results. The market must be in the form {language code}-{country /// code}. For example, en-US. /// /// <br> /// <br> /// Full list of supported markets: /// <br> /// es-AR,en-AU,de-AT,nl-BE,fr-BE,pt-BR,en-CA,fr-CA,es-CL,da-DK,fi-FI,fr-FR,de-DE,zh-HK,en-IN,en-ID,en-IE,it-IT,ja-JP,ko-KR,en-MY,es-MX,nl-NL,en-NZ,no-NO,zh-CN,pl-PL,pt-PT,en-PH,ru-RU,ar-SA,en-ZA,es-ES,sv-SE,fr-CH,de-CH,zh-TW,tr-TR,en-GB,en-US,es-US. /// Possible values include: 'en-us' ///
safesearch string /// A filter used to filter results for adult content. Possible values /// include: 'Off', 'Moderate', 'Strict' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
Результат void

SearchAsync() публичный статический Метод

Get web, image, news, & videos results for a given query.
public static SearchAsync ( this operations, double count = 10, double offset, string mkt = "en-us", string safesearch = "Moderate", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
count double /// The number of search results to return in the response. The actual number /// delivered may be less than requested. ///
offset double /// The zero-based offset that indicates the number of search results to skip /// before returning results. ///
mkt string /// The market where the results come from. Typically, this is the country /// where the user is making the request from; however, it could be a /// different country if the user is not located in a country where Bing /// delivers results. The market must be in the form {language code}-{country /// code}. For example, en-US. /// /// <br> /// <br> /// Full list of supported markets: /// <br> /// es-AR,en-AU,de-AT,nl-BE,fr-BE,pt-BR,en-CA,fr-CA,es-CL,da-DK,fi-FI,fr-FR,de-DE,zh-HK,en-IN,en-ID,en-IE,it-IT,ja-JP,ko-KR,en-MY,es-MX,nl-NL,en-NZ,no-NO,zh-CN,pl-PL,pt-PT,en-PH,ru-RU,ar-SA,en-ZA,es-ES,sv-SE,fr-CH,de-CH,zh-TW,tr-TR,en-GB,en-US,es-US. /// Possible values include: 'en-us' ///
safesearch string /// A filter used to filter results for adult content. Possible values /// include: 'Off', 'Moderate', 'Strict' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
Результат System.Threading.Tasks.Task