BuildIt.CognitiveServices.NewsSearchAPIV5Extensions.CategoryNewsAsync C# (CSharp) Method

CategoryNewsAsync() public static method

Returns news for a provided category.
public static CategoryNewsAsync ( this operations, string category = default(string), 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. ///
category string /// Specifies which category of news articles the caller wants returned. /// Possible values include: 'Business', 'Entertainment', 'Health', /// 'Politics', 'ScienceAndTechnology', 'Sports', 'US/UK', 'World' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
return System.Threading.Tasks.Task
            public static async System.Threading.Tasks.Task CategoryNewsAsync(this INewsSearchAPIV5 operations, string category = default(string), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
            {
                await operations.CategoryNewsWithHttpMessagesAsync(category, subscriptionKey, ocpApimSubscriptionKey, null, cancellationToken).ConfigureAwait(false);
            }