LongRunningOperationStatus.GetAllJobsForCurrentUser Method
Used to determine if there are jobs initiated by a user that were terminated due to system (or other) 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.SPSite
- jobType
Type: System.String
Can be Null or Empty - all running jobs for the current user will be returned.
- jobStatus
Type: System.String
- userId
Type: System.String
Return Value
Type: []
See Also
Reference
LongRunningOperationStatus Class