Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

public sealed class PSTransactionContext : 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


Show:
© 2015 Microsoft