CmdletAttribute.SupportsTransactions Property

Gets and sets a Boolean value that indicates whether the action of the cmdlet can be accepted or rolled back within a Windows PowerShell transaction.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)

Usage

Syntax

'Declaration
Public Property SupportsTransactions As Boolean
public bool SupportsTransactions { get; set; }
public:
virtual property bool SupportsTransactions {
    bool get () sealed;
    void set (bool value) sealed;
}
/** @property */
public final boolean get_SupportsTransactions ()

/** @property */
public final void set_SupportsTransactions (boolean value)
public final function get SupportsTransactions () : boolean

public final function set SupportsTransactions (value : boolean)

Property Value

A Boolean value that indicates true if the action performed by the cmdlet can be accepted or rolled back when used in a transaction. A false value indicates that the action of the cmdlet cannot be rolled back

Thread Safety

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

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP

See Also

Reference

CmdletAttribute Class
CmdletAttribute Members
System.Management.Automation Namespace

Other Resources

Windows PowerShell SDK