RegisterScheduledJobCommand.MaxResultCount Property
Gets or sets the number of job result entries that are maintained for the scheduled job. This property represents the MaxResultCount 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 Integer
value = instance.MaxResultCount
instance.MaxResultCount = value
Syntax
'Declaration
<ParameterAttribute(ParameterSetName:="ScriptBlock")> _
<ParameterAttribute(ParameterSetName:="FilePath")> _
Public Property MaxResultCount As Integer
[ParameterAttribute(ParameterSetName="ScriptBlock")]
[ParameterAttribute(ParameterSetName="FilePath")]
public int MaxResultCount { get; set; }
[ParameterAttribute(ParameterSetName=L"ScriptBlock")]
[ParameterAttribute(ParameterSetName=L"FilePath")]
public:
property int MaxResultCount {
int get ();
void set (int value);
}
/** @property */
public int get_MaxResultCount ()
/** @property */
public void set_MaxResultCount (int value)
public function get MaxResultCount () : int
public function set MaxResultCount (value : int)
Property Value
Returns Int32.
Remarks
The default value is 32.
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