コード例 #1
0
 /// <summary>
 /// Lists the products for a billing account. These don't include products
 /// billed based on usage. The operation is supported for billing accounts with
 /// agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
 /// <see href="https://docs.microsoft.com/en-us/rest/api/billing/" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='billingAccountName'>
 /// The ID that uniquely identifies a billing account.
 /// </param>
 /// <param name='filter'>
 /// May be used to filter by product type. The filter supports 'eq', 'lt',
 /// 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or
 /// 'not'. Tag filter is a key value pair string where key and value are
 /// separated by a colon (:).
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Product> > ListByBillingAccountAsync(this IProductsOperations operations, string billingAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByBillingAccountWithHttpMessagesAsync(billingAccountName, filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }