Compartir a través de


IInvoiceSectionsOperations.BeginCreateOrUpdateWithHttpMessagesAsync Método

Definición

Crea o actualiza una sección de factura. La operación solo se admite para las cuentas de facturación con tipo de contrato Contrato de cliente de Microsoft.

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

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.

parameters
InvoiceSection

Sección nueva o actualizada de la 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