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