Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks if the specified document library item is locked or checked out.
Namespace: Microsoft.SharePoint.WorkflowActions.WithKey
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Protected Overrides Function IsDocumentLocked ( _
file As SPFile, _
currentUser As SPUser _
) As Boolean
'Usage
Dim file As SPFile
Dim currentUser As SPUser
Dim returnValue As Boolean
returnValue = Me.IsDocumentLocked(file, _
currentUser)
protected override bool IsDocumentLocked(
SPFile file,
SPUser currentUser
)
Parameters
file
Type: Microsoft.SharePoint.SPFileA document library item.
currentUser
Type: Microsoft.SharePoint.SPUserA current login user.
Return Value
Type: System.Boolean
true if the list item is locked or checked out; otherwise, false.
Remarks
This override checks if the specified list item is locked or checked out.
If the file or currentUser is null , the ArgumentNullException will be thrown. If the file does not exist, the ArgumentException will be thrown.
See Also
Reference
SetModerationStatusActivity Class