Beispiel #1
0
 /// <summary>
 /// Gets an invoice by ID. The operation is supported for billing accounts with
 /// agreement type Microsoft Partner Agreement or Microsoft Customer 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='invoiceName'>
 /// The ID that uniquely identifies an invoice.
 /// </param>
 public static Invoice GetById(this IInvoicesOperations operations, string invoiceName)
 {
     return(operations.GetByIdAsync(invoiceName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the invoice by name.
 /// <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'>
 /// billing Account Id.
 /// </param>
 /// <param name='billingSubscriptionName'>
 /// Billing Subscription Id.
 /// </param>
 /// <param name='invoiceName'>
 /// Invoice Id.
 /// </param>
 public static Invoice GetById(this IInvoicesOperations operations, string billingAccountName, string billingSubscriptionName, string invoiceName)
 {
     return(operations.GetByIdAsync(billingAccountName, billingSubscriptionName, invoiceName).GetAwaiter().GetResult());
 }