public static CategoryNews ( this operations, string category = default(string), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void | ||
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 /// |
리턴 | void |
public static void CategoryNews(this INewsSearchAPIV5 operations, string category = default(string), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string))
{
System.Threading.Tasks.Task.Factory.StartNew(s => ((INewsSearchAPIV5)s).CategoryNewsAsync(category, subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
}