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)

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).
Show: