Share via


IAddressOperations.ValidateWithHttpMessagesAsync Method

Definition

Validates an address. Use the operation to validate an address before using it as soldTo or a billTo address. 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))

Parameters

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

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to