共用方式為


IAddressOperations.ValidateWithHttpMessagesAsync 方法

定義

驗證位址。 使用 作業來驗證位址,再將其當做 soldTo 或 billTo 位址使用。 https://docs.microsoft.com/en-us/rest/api/billing/

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

參數

address
AddressDetails
customHeaders
Dictionary<String,List<String>>

將新增至要求的標頭。

cancellationToken
CancellationToken

取消語彙基元。

傳回

例外狀況

當作業傳回不正確狀態碼時擲回

無法還原序列化回應時擲回

當必要參數為 Null 時擲回

適用於