Share via


FabricClient.ServiceGroupManagementClient.DeleteServiceGroupAsync Method

Definition

Overloads

DeleteServiceGroupAsync(Uri)

Asynchronously deletes the specified service group.

DeleteServiceGroupAsync(Uri, TimeSpan, CancellationToken)

Asynchronously deletes the specified service group with the provided timeout and CancellationToken.

DeleteServiceGroupAsync(Uri)

Asynchronously deletes the specified service group.

public System.Threading.Tasks.Task DeleteServiceGroupAsync (Uri serviceGroupName);
member this.DeleteServiceGroupAsync : Uri -> System.Threading.Tasks.Task
Public Function DeleteServiceGroupAsync (serviceGroupName As Uri) As Task

Parameters

serviceGroupName
Uri

The name of the service group to be deleted.

Returns

The task representing the asynchronous service group delete operation.

Exceptions

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

Applies to

DeleteServiceGroupAsync(Uri, TimeSpan, CancellationToken)

Asynchronously deletes the specified service group with the provided timeout and CancellationToken.

public System.Threading.Tasks.Task DeleteServiceGroupAsync (Uri serviceGroupName, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.DeleteServiceGroupAsync : Uri * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteServiceGroupAsync (serviceGroupName As Uri, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

serviceGroupName
Uri

The name of the service group to be deleted.

timeout
TimeSpan

Timespan that defines the maximum amount of time Service Fabric will allow this operation to continue before returning a Timeout Exception.

cancellationToken
CancellationToken

The CancellationToken object that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is cancelled.

Returns

The task representing the asynchronous service group delete operation.

Exceptions

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

Applies to