Freigeben über


DevBoxesClient.SkipActionAsync Method

Definition

[Protocol Method] Skips an occurrence of an action.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> SkipActionAsync (string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context = default);
abstract member SkipActionAsync : string * string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.SkipActionAsync : string * string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SkipActionAsync (projectName As String, userId As String, devBoxName As String, actionName As String, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

projectName
String

Name of the project.

userId
String

The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.

devBoxName
String

Display name for the Dev Box.

actionName
String

The name of the action.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

projectName, userId, devBoxName or actionName is null.

projectName, userId, devBoxName or actionName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Examples

This sample shows how to call SkipActionAsync.

Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
DevBoxesClient client = new DevBoxesClient(endpoint, credential);

Response response = await client.SkipActionAsync("<projectName>", "<userId>", "<devBoxName>", "<actionName>");

Console.WriteLine(response.Status);

This sample shows how to call SkipActionAsync with all parameters.

Uri endpoint = new Uri("<https://my-service.azure.com>");
TokenCredential credential = new DefaultAzureCredential();
DevBoxesClient client = new DevBoxesClient(endpoint, credential);

Response response = await client.SkipActionAsync("<projectName>", "<userId>", "<devBoxName>", "<actionName>");

Console.WriteLine(response.Status);

Applies to