Share via


SPUserCollection.GetCollection method

Returns a collection of users with the specified user names.

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

Syntax

'Declaration
Public Function GetCollection ( _
    loginNames As String() _
) As SPUserCollection
'Usage
Dim instance As SPUserCollection
Dim loginNames As String()
Dim returnValue As SPUserCollection

returnValue = instance.GetCollection(loginNames)
public SPUserCollection GetCollection(
    string[] loginNames
)

Parameters

  • loginNames
    Type: []

    An array of strings that contain the login names of users.

Return value

Type: Microsoft.SharePoint.SPUserCollection
A collection of SPUser objects.

See also

Reference

SPUserCollection class

SPUserCollection members

Microsoft.SharePoint namespace