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)

Syntax

'Declaration
Public ReadOnly Property CheckedOutByUser As SPUser
    Get
'Usage
Dim instance As SPFile
Dim value As SPUser

value = instance.CheckedOutByUser
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