Web.GetUserById method

Returns the user corresponding to the specified member identifier for the current site.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function GetUserById ( _
    userId As Integer _
) As User
'Usage
Dim instance As Web
Dim userId As Integer
Dim returnValue As User

returnValue = instance.GetUserById(userId)
public User GetUserById(
    int userId
)

Parameters

  • userId
    Type: System.Int32

    Specifies the member identifier.

Return value

Type: Microsoft.SharePoint.Client.User
The user corresponding to the specified member identifier.

See also

Reference

Web class

Web members

Microsoft.SharePoint.Client namespace