TaskAgentHttpClientBase.DeleteDeploymentTargetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| DeleteDeploymentTargetAsync(Guid, Int32, Int32, Object, CancellationToken) |
[Preview API] Delete a deployment target in a deployment group. This deletes the agent from associated deployment pool too. |
| DeleteDeploymentTargetAsync(String, Int32, Int32, Object, CancellationToken) |
[Preview API] Delete a deployment target in a deployment group. This deletes the agent from associated deployment pool too. |
DeleteDeploymentTargetAsync(Guid, Int32, Int32, Object, CancellationToken)
[Preview API] Delete a deployment target in a deployment group. This deletes the agent from associated deployment pool too.
public virtual System.Threading.Tasks.Task DeleteDeploymentTargetAsync(Guid project, int deploymentGroupId, int targetId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteDeploymentTargetAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteDeploymentTargetAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
- project
- Guid
Project ID
- deploymentGroupId
- Int32
ID of the deployment group in which deployment target is deleted.
- targetId
- Int32
ID of the deployment target to delete.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
DeleteDeploymentTargetAsync(String, Int32, Int32, Object, CancellationToken)
[Preview API] Delete a deployment target in a deployment group. This deletes the agent from associated deployment pool too.
public virtual System.Threading.Tasks.Task DeleteDeploymentTargetAsync(string project, int deploymentGroupId, int targetId, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member DeleteDeploymentTargetAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteDeploymentTargetAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
- project
- String
Project ID or project name
- deploymentGroupId
- Int32
ID of the deployment group in which deployment target is deleted.
- targetId
- Int32
ID of the deployment target to delete.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.