コード例 #1
0
 /// <summary>
 /// Lists all Enrollment Accounts for a user which he has access to.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='billingAccountName'>
 /// billing Account Id.
 /// </param>
 /// <param name='expand'>
 /// May be used to expand the department.
 /// </param>
 /// <param name='filter'>
 /// 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 is separated by a colon (:).
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EnrollmentAccountListResult> ListAsync(this IEnrollmentAccountsByBillingAccountNameOperations operations, string billingAccountName, string expand = default(string), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountName, expand, filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Lists all Enrollment Accounts for a user which he has access to.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='billingAccountName'>
 /// billing Account Id.
 /// </param>
 /// <param name='expand'>
 /// May be used to expand the department.
 /// </param>
 /// <param name='filter'>
 /// 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 is separated by a colon (:).
 /// </param>
 public static EnrollmentAccountListResult List(this IEnrollmentAccountsByBillingAccountNameOperations operations, string billingAccountName, string expand = default(string), string filter = default(string))
 {
     return(operations.ListAsync(billingAccountName, expand, filter).GetAwaiter().GetResult());
 }