Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSTransactionContext Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides a mechanism to reset the current Windows PowerShell transaction. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.PSTransactionContext

public sealed class PSTransactionContext : IDisposable

NameDescription
System_CAPS_pubmethodDispose()

Releases the current internal transaction object that is used by Windows PowerShell to manage its transactions. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Destructor for the PSTransactionManager class (Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Windows PowerShell creates an internal transaction object each time that the Start-Transaction cmdlet is run. The Dispose method of the PSTransactionContext object can be called to release the current internal object, which in turn resets the current transaction so that there is no current transaction available.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show: