IProfileOperations.UpdateAsync Method

Asynchronously enables or disables a profile.

Namespace: Microsoft.WindowsAzure.Management.TrafficManager
Assembly: Microsoft.WindowsAzure.Management.TrafficManager (in Microsoft.WindowsAzure.Management.TrafficManager.dll)

'Usage
Dim instance As IProfileOperations
Dim profileName As String
Dim profileStatus As ProfileDefinitionStatus
Dim definitionVersionNumber As Integer
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of OperationResponse)

returnValue = instance.UpdateAsync(profileName, profileStatus, definitionVersionNumber, cancellationToken)

Task<OperationResponse> UpdateAsync (
	string profileName,
	ProfileDefinitionStatus profileStatus,
	int definitionVersionNumber,
	CancellationToken cancellationToken
)
Task<OperationResponse> UpdateAsync (
	String profileName, 
	ProfileDefinitionStatus profileStatus, 
	int definitionVersionNumber, 
	CancellationToken cancellationToken
)
function UpdateAsync (
	profileName : String, 
	profileStatus : ProfileDefinitionStatus, 
	definitionVersionNumber : int, 
	cancellationToken : CancellationToken
) : Task<OperationResponse>

Parameters

profileName

The name of the profile to enable or disable.

profileStatus

The ProfileDefinitionStatus value that specifies whether the profile should be enabled or disabled.

definitionVersionNumber

The version of the definition that is associated with the profile.

cancellationToken

The cancellation token.

Return Value

An OperationResponse object that includes an HTTP status code and request ID.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

Show: