PSTransactionContext Class

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)

'Usage
Dim instance As PSTransactionContext

'Declaration
Public NotInheritable Class PSTransactionContext
	Implements IDisposable
public final class PSTransactionContext implements IDisposable
public final class PSTransactionContext implements IDisposable

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.


System.Object
  System.Management.Automation.PSTransactionContext

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

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft