SPFile.CheckedOutByUser Property

Gets an object that represents the user who has checked out the file.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property CheckedOutByUser As SPUser
    Get
'Usage
Dim instance As SPFile
Dim value As SPUser

value = instance.CheckedOutByUser
[ClientCallableAttribute]
public SPUser CheckedOutByUser { get; }

Property Value

Type: Microsoft.SharePoint.SPUser
If the file is checked out, the user who has checked it out; otherwise, a null reference (Nothing in Visual Basic).

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace