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