Udostępnij za pośrednictwem


FabricClient.ApplicationManagementClient.DeleteApplicationAsync Method

Definition

Overloads

DeleteApplicationAsync(DeleteApplicationDescription, TimeSpan, CancellationToken)

Deletes the application instance from the cluster and deletes all services belonging to the application.

DeleteApplicationAsync(Uri, TimeSpan, CancellationToken)
Obsolete.

Deletes the application instance from the cluster and deletes all services belonging to the application.

DeleteApplicationAsync(DeleteApplicationDescription)

Deletes the application instance from the cluster and deletes all services belonging to the application.

DeleteApplicationAsync(Uri)
Obsolete.

Deletes the application instance from the cluster and deletes all services belonging to the application.

DeleteApplicationAsync(DeleteApplicationDescription, TimeSpan, CancellationToken)

Deletes the application instance from the cluster and deletes all services belonging to the application.

public System.Threading.Tasks.Task DeleteApplicationAsync (System.Fabric.Description.DeleteApplicationDescription deleteApplicationDescription, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.DeleteApplicationAsync : System.Fabric.Description.DeleteApplicationDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteApplicationAsync (deleteApplicationDescription As DeleteApplicationDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

deleteApplicationDescription
DeleteApplicationDescription

The description of the application to be deleted.

timeout
TimeSpan

Defines the maximum amount of time the system will allow this operation to continue before returning System.TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

A Task representing the operation.

Exceptions

ApplicationUpgradeInProgress: The application is being upgraded.

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ApplicationNotFound: The application does not exist.

ApplicationUpgradeInProgress: The application is being upgraded.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

Remarks

All application state will be lost and cannot be recovered after the application is deleted.

A forceful deletion call can convert on-going normal deletion to forceful one.

Applies to

DeleteApplicationAsync(Uri, TimeSpan, CancellationToken)

Caution

This api is deprecated, use overload taking DeleteApplicationDescription instead.

Deletes the application instance from the cluster and deletes all services belonging to the application.

[System.Obsolete("This api is deprecated, use overload taking DeleteApplicationDescription instead.", false)]
public System.Threading.Tasks.Task DeleteApplicationAsync (Uri applicationName, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("This api is deprecated, use overload taking DeleteApplicationDescription instead.", false)>]
member this.DeleteApplicationAsync : Uri * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteApplicationAsync (applicationName As Uri, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

applicationName
Uri

The URI of the application instance name.

timeout
TimeSpan

Defines the maximum amount of time the system will allow this operation to continue before returning System.TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

A Task representing the operation.

Attributes

Exceptions

ApplicationUpgradeInProgress: The application is being upgraded.

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ApplicationNotFound: The application does not exist.

ApplicationUpgradeInProgress: The application is being upgraded.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

Remarks

All application state will be lost and cannot be recovered after the application is deleted.

Applies to

DeleteApplicationAsync(DeleteApplicationDescription)

Deletes the application instance from the cluster and deletes all services belonging to the application.

public System.Threading.Tasks.Task DeleteApplicationAsync (System.Fabric.Description.DeleteApplicationDescription deleteApplicationDescription);
member this.DeleteApplicationAsync : System.Fabric.Description.DeleteApplicationDescription -> System.Threading.Tasks.Task
Public Function DeleteApplicationAsync (deleteApplicationDescription As DeleteApplicationDescription) As Task

Parameters

deleteApplicationDescription
DeleteApplicationDescription

The description of the application to be deleted.

Returns

A Task representing the operation.

Exceptions

ApplicationUpgradeInProgress: The application is being upgraded.

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ApplicationNotFound: The application does not exist.

ApplicationUpgradeInProgress: The application is being upgraded.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

Remarks

All application state will be lost and cannot be recovered after the application is deleted.

A forceful deletion call can convert on-going normal deletion to forceful one.

Applies to

DeleteApplicationAsync(Uri)

Caution

This api is deprecated, use overload taking DeleteApplicationDescription instead.

Deletes the application instance from the cluster and deletes all services belonging to the application.

[System.Obsolete("This api is deprecated, use overload taking DeleteApplicationDescription instead.", false)]
public System.Threading.Tasks.Task DeleteApplicationAsync (Uri applicationName);
[<System.Obsolete("This api is deprecated, use overload taking DeleteApplicationDescription instead.", false)>]
member this.DeleteApplicationAsync : Uri -> System.Threading.Tasks.Task
Public Function DeleteApplicationAsync (applicationName As Uri) As Task

Parameters

applicationName
Uri

The URI of the application instance name.

Returns

A Task representing the operation.

Attributes

Exceptions

ApplicationUpgradeInProgress: The application is being upgraded.

The FabricClient object is in a closed state. Dispose of the FabricClient object you are using and instantiate a new FabricClient object.

ApplicationNotFound: The application does not exist.

ApplicationUpgradeInProgress: The application is being upgraded.

The request timed out but may have already been accepted for processing by the system.

The request was canceled before the timeout expired but may have already been accepted for processing by the system.

Remarks

All application state will be lost and cannot be recovered after the application is deleted.

Applies to