TaskAgentHttpClientBase.ReplaceDeploymentTargetAsync 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 |
|---|---|
| ReplaceDeploymentTargetAsync(Guid, Int32, Int32, DeploymentMachine, Object, CancellationToken) |
[Preview API] Replace a deployment target in a deployment group. Generally this is called by agent configuration tool. |
| ReplaceDeploymentTargetAsync(String, Int32, Int32, DeploymentMachine, Object, CancellationToken) |
[Preview API] Replace a deployment target in a deployment group. Generally this is called by agent configuration tool. |
ReplaceDeploymentTargetAsync(Guid, Int32, Int32, DeploymentMachine, Object, CancellationToken)
[Preview API] Replace a deployment target in a deployment group. Generally this is called by agent configuration tool.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine> ReplaceDeploymentTargetAsync(Guid project, int deploymentGroupId, int targetId, Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine machine, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ReplaceDeploymentTargetAsync : Guid * int * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
override this.ReplaceDeploymentTargetAsync : Guid * int * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
Parameters
- project
- Guid
Project ID
- deploymentGroupId
- Int32
ID of the deployment group in which deployment target is replaced.
- targetId
- Int32
ID of the deployment target to replace.
- machine
- DeploymentMachine
New deployment target.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
ReplaceDeploymentTargetAsync(String, Int32, Int32, DeploymentMachine, Object, CancellationToken)
[Preview API] Replace a deployment target in a deployment group. Generally this is called by agent configuration tool.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine> ReplaceDeploymentTargetAsync(string project, int deploymentGroupId, int targetId, Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine machine, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member ReplaceDeploymentTargetAsync : string * int * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
override this.ReplaceDeploymentTargetAsync : string * int * int * Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DeploymentMachine>
Parameters
- project
- String
Project ID or project name
- deploymentGroupId
- Int32
ID of the deployment group in which deployment target is replaced.
- targetId
- Int32
ID of the deployment target to replace.
- machine
- DeploymentMachine
New deployment target.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.