コード例 #1
0
 /// <summary>
 /// Lists report records by Time.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='interval'>
 /// By time interval. Interval must be multiple of 15 minutes and may not be
 /// zero. The value should be in ISO  8601 format
 /// (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
 /// convert TimeSpan to a valid interval string: XmlConvert.ToString(new
 /// TimeSpan(hours, minutes, seconds)).
 /// </param>
 public static IPage <ReportRecordContract> ListByTime(this IReportsOperations operations, ODataQuery <ReportRecordContract> odataQuery, string resourceGroupName, string serviceName, System.TimeSpan interval)
 {
     return(operations.ListByTimeAsync(odataQuery, resourceGroupName, serviceName, interval).GetAwaiter().GetResult());
 }