Partager via


File.LockedByUser - Propriété

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

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public ReadOnly Property LockedByUser As User
    Get
'Utilisation
Dim instance As File
Dim value As User

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

Valeur de propriété

Type : Microsoft.SharePoint.Client.User
Returns User.

Exceptions

Exception Condition
[System.IO.FileNotFoundException]

File cannot be found. Error code: -2147024894.

[System.UnauthorizedAccessException]

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

Remarques

It must return une référence Null (Rien dans Visual Basic) if there is no lock. It must return une référence Null (Rien dans Visual Basic) if there is no lock.

Voir aussi

Référence

File classe

File - Membres

Microsoft.SharePoint.Client - Espace de noms