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.

CmdletCommonMetadataAttribute.SupportsTransactions Property


Updated: April 27, 2016

Applies To: Windows PowerShell

Gets or sets a value that indicates whether the action of the command can be accepted or rolled back within a Windows PowerShell transaction. This property is introduced in Windows PowerShell 2.0.

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

public bool SupportsTransactions { get; set; }

Property Value

Type: System.Boolean

Returns Boolean: true if the action performed by the function can be accepted or rolled back when used in a transaction; false if the command cannot be used within a transaction.

When the SupportsTransactions parameter is set to true, the UseTransaction parameter is added to the command by the Windows PowerShell runtime.

Return to top

Community Additions