共用方式為


SPTimerJobUsageEntry.Status Property

Gets or sets a value from the SPRunningJobStatus enumeration that specifies the status of the timer job.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property Status As Integer
    Get
    Set
'Usage
Dim instance As SPTimerJobUsageEntry
Dim value As Integer

value = instance.Status

instance.Status = value
public int Status { get; set; }

Property Value

Type: System.Int32
Returns an Int32 specifying the enumeration value.

Remarks

The values represent the status as follows:

  1. 1 = Initialized

  2. 2 = Succeeded

  3. 3 = Failed

  4. 4 = Retry

  5. 5 = Aborted

See Also

Reference

SPTimerJobUsageEntry Class

SPTimerJobUsageEntry Members

Microsoft.SharePoint.Administration Namespace