Partager via


DevBoxesClient.SkipAction 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 Azure.Response SkipAction (string projectName, string userId, string devBoxName, string actionName, Azure.RequestContext context = default);
abstract member SkipAction : string * string * string * string * Azure.RequestContext -> Azure.Response
override this.SkipAction : string * string * string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function SkipAction (projectName As String, userId As String, devBoxName As String, actionName As String, Optional context As RequestContext = Nothing) As 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 SkipAction.

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

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

Console.WriteLine(response.Status);

This sample shows how to call SkipAction with all parameters.

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

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

Console.WriteLine(response.Status);

Applies to