SqlSmoObject.ExecuteWithModes(SqlExecutionModes, Action) 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

Parameters

modes
SqlExecutionModes SqlExecutionModes

The modes to run the action under.

action
Action Action

The action to run.

Applies to