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.

PSTransaction Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents an active transaction. Windows PowerShell creates a PSTransaction object when the New-Transaction cmdlet is called the first time. (Windows PowerShell supports only one active transaction.) This object is returned by the Get-Transaction cmdlet. This class cannot be inherited. 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.PSTransaction

public sealed class PSTransaction : IDisposable

NameDescription
System_CAPS_pubpropertyRollbackPreference

Gets the type of error (such as terminating or nonterminating errors) that causes the active transaction to automatically roll back its changes. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyStatus

Gets the status of the active transaction. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySubscriberCount

Gets or sets the number of times that the New-Transaction cmdlet is called before the Undo-Transaction or Complete-Transaction cmdlet is called to close the active transaction. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources that are used by the PSTransaction. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodDispose(Boolean)

Releases the unmanaged resources used by the PSTransaction and optionally releases the managed resources. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

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

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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
Show: