IHostedServiceOperations.DeleteAsync Method (String, CancellationToken)
Asynchronously deletes the specified cloud service from a subscription.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
Task<AzureOperationResponse> DeleteAsync(
string serviceName,
CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ DeleteAsync(
String^ serviceName,
CancellationToken cancellationToken
)
abstract DeleteAsync :
serviceName:string *
cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function DeleteAsync (
serviceName As String,
cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)
Parameters
serviceName
Type: System.StringThe name of the cloud service to delete from the subscription.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<AzureOperationResponse>
An OperationResponse object that includes an HTTP status code and request ID.
Remarks
For more information about delete cloud services, see the following resources:
See Also
IHostedServiceOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top