Compartilhar via


SqlSmoObject.ExecuteWithModes(SqlExecutionModes, Action) Method

Definition

Executes the given action under the given execution modes.

Resets the original modes after the action completes or fails.

public void ExecuteWithModes (Microsoft.SqlServer.Management.Common.SqlExecutionModes modes, Action action);
member this.ExecuteWithModes : Microsoft.SqlServer.Management.Common.SqlExecutionModes * Action -> unit
Public Sub ExecuteWithModes (modes As SqlExecutionModes, action As Action)

Parameters

modes
SqlExecutionModes

The modes to run the action under.

action
Action

The action to run.

Applies to