Share via


SPUserCollection.GetByID method

Returns the user with the specified member ID.

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

Syntax

'Declaration
Public Function GetByID ( _
    id As Integer _
) As SPUser
'Usage
Dim instance As SPUserCollection
Dim id As Integer
Dim returnValue As SPUser

returnValue = instance.GetByID(id)
public SPUser GetByID(
    int id
)

Parameters

  • id
    Type: System.Int32

    A 32-bit integer that specifies the member ID.

Return value

Type: Microsoft.SharePoint.SPUser
A Microsoft.SharePoint.SPUser object that represents the user.

Remarks

The value of the id parameter corresponds to the unique member ID for the user, which is contained in the ID property of the SPMember class.

See also

Reference

SPUserCollection class

SPUserCollection members

Microsoft.SharePoint namespace