Share via


HostedServiceOperationsExtensions.DeleteExtension Method (IHostedServiceOperations, String, String)

 

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

public static OperationStatusResponse DeleteExtension(
    this IHostedServiceOperations operations,
    string serviceName,
    string extensionId
)
public:
[ExtensionAttribute]
static OperationStatusResponse^ DeleteExtension(
    IHostedServiceOperations^ operations,
    String^ serviceName,
    String^ extensionId
)
static member DeleteExtension : 
        operations:IHostedServiceOperations *
        serviceName:string *
        extensionId:string -> OperationStatusResponse
<ExtensionAttribute>
Public Shared Function DeleteExtension (
    operations As IHostedServiceOperations,
    serviceName As String,
    extensionId As String
) As OperationStatusResponse

Parameters

  • serviceName
    Type: System.String

    The name of the cloud service from which the extension should be deleted.

  • extensionId
    Type: System.String

    The identifier that was assigned to the extension when it was added to the cloud service.

Return Value

Type: Microsoft.Azure.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

HostedServiceOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top