RegisterScheduledJobCommand.ScriptBlock Property
Gets or sets the commands that are run by the scheduled job. This property represents the ScriptBlock cmdlet parameter. This SDK programming element is introduced in Windows PowerShell 3.0.
Namespace: Microsoft.PowerShell.ScheduledJob
Assembly: Microsoft.PowerShell.ScheduledJob (in Microsoft.PowerShell.ScheduledJob.dll)
Usage
'Usage
Dim instance As RegisterScheduledJobCommand
Dim value As ScriptBlock
value = instance.ScriptBlock
instance.ScriptBlock = value
Syntax
'Declaration
<ValidateNotNullAttribute> _
<ParameterAttribute(Position:=1, Mandatory:=True, ParameterSetName:="ScriptBlock")> _
Public Property ScriptBlock As ScriptBlock
[ValidateNotNullAttribute]
[ParameterAttribute(Position=1, Mandatory=true, ParameterSetName="ScriptBlock")]
public ScriptBlock ScriptBlock { get; set; }
[ValidateNotNullAttribute]
[ParameterAttribute(Position=1, Mandatory=true, ParameterSetName=L"ScriptBlock")]
public:
property ScriptBlock^ ScriptBlock {
ScriptBlock^ get ();
void set (ScriptBlock^ value);
}
/** @property */
public ScriptBlock get_ScriptBlock ()
/** @property */
public void set_ScriptBlock (ScriptBlock value)
public function get ScriptBlock () : ScriptBlock
public function set ScriptBlock (value : ScriptBlock)
Property Value
Returns ScriptBlock.
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
RegisterScheduledJobCommand Class
RegisterScheduledJobCommand Members
Microsoft.PowerShell.ScheduledJob Namespace