TaskAgentHttpClientBase.UpdateEnvironmentAsync 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
| UpdateEnvironmentAsync(Guid, Int32, EnvironmentUpdateParameter, Object, CancellationToken) |
[Preview API] Update the specified environment. |
| UpdateEnvironmentAsync(String, Int32, EnvironmentUpdateParameter, Object, CancellationToken) |
[Preview API] Update the specified environment. |
UpdateEnvironmentAsync(Guid, Int32, EnvironmentUpdateParameter, Object, CancellationToken)
[Preview API] Update the specified environment.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DistributedTaskEnvironment> UpdateEnvironmentAsync(Guid project, int environmentId, Microsoft.TeamFoundation.DistributedTask.WebApi.EnvironmentUpdateParameter environmentUpdateParameter, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateEnvironmentAsync : Guid * int * Microsoft.TeamFoundation.DistributedTask.WebApi.EnvironmentUpdateParameter * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DistributedTaskEnvironment>
override this.UpdateEnvironmentAsync : Guid * int * Microsoft.TeamFoundation.DistributedTask.WebApi.EnvironmentUpdateParameter * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DistributedTaskEnvironment>
Parameters
- project
- Guid
Project ID
- environmentId
- Int32
ID of the environment.
- environmentUpdateParameter
- EnvironmentUpdateParameter
Environment data to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UpdateEnvironmentAsync(String, Int32, EnvironmentUpdateParameter, Object, CancellationToken)
[Preview API] Update the specified environment.
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DistributedTaskEnvironment> UpdateEnvironmentAsync(string project, int environmentId, Microsoft.TeamFoundation.DistributedTask.WebApi.EnvironmentUpdateParameter environmentUpdateParameter, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UpdateEnvironmentAsync : string * int * Microsoft.TeamFoundation.DistributedTask.WebApi.EnvironmentUpdateParameter * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DistributedTaskEnvironment>
override this.UpdateEnvironmentAsync : string * int * Microsoft.TeamFoundation.DistributedTask.WebApi.EnvironmentUpdateParameter * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.DistributedTaskEnvironment>
Parameters
- project
- String
Project ID or project name
- environmentId
- Int32
ID of the environment.
- environmentUpdateParameter
- EnvironmentUpdateParameter
Environment data to update.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.