IHostedServiceOperations.DeleteExtensionAsync Method (String, String, CancellationToken)
Asynchronously deletes the specified extension from a cloud service.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
Task<OperationStatusResponse> DeleteExtensionAsync(
string serviceName,
string extensionId,
CancellationToken cancellationToken
)
Task<OperationStatusResponse^>^ DeleteExtensionAsync(
String^ serviceName,
String^ extensionId,
CancellationToken cancellationToken
)
abstract DeleteExtensionAsync :
serviceName:string *
extensionId:string *
cancellationToken:CancellationToken -> Task<OperationStatusResponse>
Function DeleteExtensionAsync (
serviceName As String,
extensionId As String,
cancellationToken As CancellationToken
) As Task(Of OperationStatusResponse)
Parameters
serviceName
Type: System.StringThe name of the cloud service from which the extension should be deleted.
extensionId
Type: System.StringThe identifier that was assigned to the extension when it was added to the cloud service.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<OperationStatusResponse>
The T:Microsoft.WindowsAzure.Management.Compute.Models.ComputeOperationStatusResponse object that contains the status of the operation.
Remarks
If the asynchronous operation succeeds, the response includes the HTTP status code for the successful request. If the asynchronous operation failed, the response includes the HTTP status code for the failed request, and also includes error information about the failure.
For more information about deleting an extension from a service, see the following resources:
See Also
IHostedServiceOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top