LongRunningOperationStatus.GetJob Method

Instantiates a new LongRunningOperationStatus list and populates it with the most current status information.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Shared Function GetJob ( _
    site As SPSite, _
    jobId As Guid _
) As LongRunningOperationStatus
'Usage
Dim site As SPSite
Dim jobId As Guid
Dim returnValue As LongRunningOperationStatus

returnValue = LongRunningOperationStatus.GetJob(site, jobId)
public static LongRunningOperationStatus GetJob(
    SPSite site,
    Guid jobId
)

Parameters

  • jobId
    Type: System.Guid

    Specifies the identifier (ID) of the job to retrieve status information about.

Return Value

Type: Microsoft.SharePoint.Publishing.LongRunningOperationStatus
A reference to a LongRunningOperationStatus with the most current status.

See Also

Reference

LongRunningOperationStatus Class

LongRunningOperationStatus Members

Microsoft.SharePoint.Publishing Namespace