LongRunningOperationStatus.GetAllJobsForCurrentUser Method
Determines whether there are jobs initiated by a user that were terminated due to failures.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Function GetAllJobsForCurrentUser ( _
site As SPSite, _
jobType As String, _
jobStatus As String, _
userId As String _
) As LongRunningOperationStatus()
'Usage
Dim site As SPSite
Dim jobType As String
Dim jobStatus As String
Dim userId As String
Dim returnValue As LongRunningOperationStatus()
returnValue = LongRunningOperationStatus.GetAllJobsForCurrentUser(site, _
jobType, jobStatus, userId)
public static LongRunningOperationStatus[] GetAllJobsForCurrentUser(
SPSite site,
string jobType,
string jobStatus,
string userId
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe site on which to gather the user jobs.
jobType
Type: System.StringCan be a null reference (Nothing in Visual Basic) or empty.-All running jobs for the current user are returned.
jobStatus
Type: System.StringA string that contains a job status.
userId
Type: System.StringA string that contains the user identifier (ID) for the jobs to gather.
Return Value
Type: []
See Also
Reference
LongRunningOperationStatus Class