Share via


ProfileOperationsExtensions.UpdateAsync Method

Definition

Enables or disables a profile. (see http://msdn.microsoft.com/en-us/library/hh758250.aspx for more information)

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> UpdateAsync (this Microsoft.WindowsAzure.Management.TrafficManager.IProfileOperations operations, string profileName, Microsoft.WindowsAzure.Management.TrafficManager.Models.ProfileDefinitionStatus profileStatus, int definitionVersionNumber);
static member UpdateAsync : Microsoft.WindowsAzure.Management.TrafficManager.IProfileOperations * string * Microsoft.WindowsAzure.Management.TrafficManager.Models.ProfileDefinitionStatus * int -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function UpdateAsync (operations As IProfileOperations, profileName As String, profileStatus As ProfileDefinitionStatus, definitionVersionNumber As Integer) As Task(Of AzureOperationResponse)

Parameters

operations
IProfileOperations

Reference to the Microsoft.WindowsAzure.Management.TrafficManager.IProfileOperations.

profileName
String

Required. The name of the profile.

profileStatus
ProfileDefinitionStatus

Required. Specifies whether the profile should be enabled or disabled.

definitionVersionNumber
Int32

Required. Version of the definition associated with the profile

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to