UseTransactionCommand.TransactedScript Property
Gets and sets the value of the TransactedScript parameter of the Use-Transaction cmdlet. This property is introduced in Windows PowerShell 2.0.
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)
Usage
'Usage
Dim instance As UseTransactionCommand
Dim value As ScriptBlock
value = instance.TransactedScript
instance.TransactedScript = value
Syntax
'Declaration
<ParameterAttribute(Position:=0, Mandatory:=True)> _
Public Property TransactedScript As ScriptBlock
[ParameterAttribute(Position=0, Mandatory=true)]
public ScriptBlock TransactedScript { get; set; }
[ParameterAttribute(Position=0, Mandatory=true)]
public:
property ScriptBlock^ TransactedScript {
ScriptBlock^ get ();
void set (ScriptBlock^ value);
}
/** @property */
public ScriptBlock get_TransactedScript ()
/** @property */
public void set_TransactedScript (ScriptBlock value)
public function get TransactedScript () : ScriptBlock
public function set TransactedScript (value : ScriptBlock)
Property Value
A ScriptBlock object that is run in the transaction. Enter any valid script block enclosed in braces ( { } ). This parameter is required.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Use-Transaction in the Microsoft TechNet library.
For Help at the command line, type:
get-help use-transaction
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
Target Platforms
See Also
Reference
UseTransactionCommand Class
UseTransactionCommand Members
Microsoft.PowerShell.Commands Namespace