Compartir a través de


IInvoiceSectionsOperations.GetWithHttpMessagesAsync Método

Definición

Obtiene una sección de factura por su identificador. La operación solo se admite para las cuentas de facturación con tipo de contrato Contrato de cliente de Microsoft. https://docs.microsoft.com/en-us/rest/api/billing/

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Billing.Models.InvoiceSection>> GetWithHttpMessagesAsync (string billingAccountName, string billingProfileName, string invoiceSectionName, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWithHttpMessagesAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Billing.Models.InvoiceSection>>
Public Function GetWithHttpMessagesAsync (billingAccountName As String, billingProfileName As String, invoiceSectionName As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of InvoiceSection))

Parámetros

billingAccountName
String

Identificador que identifica de forma única una cuenta de facturación.

billingProfileName
String

Identificador que identifica de forma única un perfil de facturación.

invoiceSectionName
String

Identificador que identifica de forma única una sección de factura.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando no se puede deserializar la respuesta

Se produce cuando un parámetro obligatorio es NULL

Se aplica a