Runspace.SetBaseTransaction Runspace.SetBaseTransaction Runspace.SetBaseTransaction Method

Definition

Overloads

SetBaseTransaction(CommittableTransaction) SetBaseTransaction(CommittableTransaction) SetBaseTransaction(CommittableTransaction)

Sets the base transaction for the runspace; any transactions created on this runspace will be nested to this instance

SetBaseTransaction(CommittableTransaction, RollbackSeverity) SetBaseTransaction(CommittableTransaction, RollbackSeverity) SetBaseTransaction(CommittableTransaction, RollbackSeverity)

Sets the base transaction for the runspace; any transactions created on this runspace will be nested to this instance

SetBaseTransaction(CommittableTransaction) SetBaseTransaction(CommittableTransaction) SetBaseTransaction(CommittableTransaction)

Sets the base transaction for the runspace; any transactions created on this runspace will be nested to this instance

public void SetBaseTransaction (System.Transactions.CommittableTransaction transaction);
member this.SetBaseTransaction : System.Transactions.CommittableTransaction -> unit
Public Sub SetBaseTransaction (transaction As CommittableTransaction)
Parameters

Remarks

This overload uses RollbackSeverity.Error; i.e. the transaction will be rolled back automatically on a non-terminating error or worse

SetBaseTransaction(CommittableTransaction, RollbackSeverity) SetBaseTransaction(CommittableTransaction, RollbackSeverity) SetBaseTransaction(CommittableTransaction, RollbackSeverity)

Sets the base transaction for the runspace; any transactions created on this runspace will be nested to this instance

public void SetBaseTransaction (System.Transactions.CommittableTransaction transaction, System.Management.Automation.RollbackSeverity severity);
member this.SetBaseTransaction : System.Transactions.CommittableTransaction * System.Management.Automation.RollbackSeverity -> unit
Public Sub SetBaseTransaction (transaction As CommittableTransaction, severity As RollbackSeverity)
Parameters
severity
RollbackSeverity RollbackSeverity RollbackSeverity

The severity of error that causes PowerShell to automatically rollback the transaction

Applies to