File.LockedByUser 属性

Gets a value that returns the user that owns the current lock on the file.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public ReadOnly Property LockedByUser As User
    Get
用法
Dim instance As File
Dim value As User

value = instance.LockedByUser
public User LockedByUser { get; }

属性值

类型:Microsoft.SharePoint.Client.User
Returns User.

异常

异常 条件
[System.IO.FileNotFoundException]

File cannot be found. Error code: -2147024894.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

备注

It must return 空引用(无 在 Visual Basic 中) if there is no lock. It must return 空引用(无 在 Visual Basic 中) if there is no lock.

另请参阅

引用

File 类

File 成员

Microsoft.SharePoint.Client 命名空间