CmdletCommonMetadataAttribute.SupportsTransactions Property

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)

Dim instance As CmdletCommonMetadataAttribute
Dim value As Boolean

value = instance.SupportsTransactions

instance.SupportsTransactions = value

public bool SupportsTransactions { get; set; }
/** @property */
public boolean get_SupportsTransactions ()

/** @property */
public void set_SupportsTransactions (boolean value)

public function get SupportsTransactions () : boolean

public function set SupportsTransactions (value : boolean)

Property Value

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.

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.
© 2014 Microsoft