Udostępnij za pośrednictwem


IProductsOperations.MoveWithHttpMessagesAsync Metoda

Definicja

Przenosi opłaty za produkt do nowej sekcji faktury. Nowa sekcja faktury musi należeć do tego samego profilu rozliczeniowego co istniejąca sekcja faktury. Ta operacja jest obsługiwana tylko w przypadku produktów zakupionych przy użyciu cyklicznej opłaty i kont rozliczeniowych z Umowa z Klientem Microsoft typu umowy. https://docs.microsoft.com/en-us/rest/api/billing/

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

Parametry

billingAccountName
String

Identyfikator, który jednoznacznie identyfikuje konto rozliczeniowe.

productName
String

Identyfikator, który jednoznacznie identyfikuje produkt.

parameters
TransferProductRequestProperties

Parametry żądania dostarczone do operacji przenoszenia produktu.

customHeaders
Dictionary<String,List<String>>

Nagłówki, które zostaną dodane do żądania.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Wyjątki

Zgłaszany, gdy operacja zwróciła nieprawidłowy kod stanu

Zgłaszany, gdy nie można wykonać deserializacji odpowiedzi

Zgłaszany, gdy wymagany parametr ma wartość null

Dotyczy