共用方式為


SPFile.CheckedOutBy Property

NOTE: This API is now obsolete.

This property is obsolete. Use LockedByUser instead.

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

Syntax

'Declaration
<ObsoleteAttribute("SPFile.CheckedOutBy is obsolete.  Use SPFile.LockedByUser or SPFile.CheckedOutByUser instead.")> _
Public ReadOnly Property CheckedOutBy As SPUser
    Get
'Usage
Dim instance As SPFile
Dim value As SPUser

value = instance.CheckedOutBy
[ObsoleteAttribute("SPFile.CheckedOutBy is obsolete.  Use SPFile.LockedByUser or SPFile.CheckedOutByUser instead.")]
public SPUser CheckedOutBy { get; }

Property Value

Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the user. Returns a null reference (Nothing in Visual Basic) if the file is not locked or checked out.

Remarks

A locked document is always checked out.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace