Share via


SocialDataManager.GetBulkUserProfiles method (List<Int64>, Boolean)

Retrieves a list of user profiles corresponding to the specified list of user record IDs.

Namespace:  Microsoft.Office.Server.SocialData
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Protected Function GetBulkUserProfiles ( _
    rgUserRecordIds As List(Of Long), _
    includeNullsForUnresolvableUsers As Boolean _
) As List(Of UserProfile)
'Usage
Dim rgUserRecordIds As List(Of Long)
Dim includeNullsForUnresolvableUsers As Boolean
Dim returnValue As List(Of UserProfile)

returnValue = Me.GetBulkUserProfiles(rgUserRecordIds, _
    includeNullsForUnresolvableUsers)
protected List<UserProfile> GetBulkUserProfiles(
    List<long> rgUserRecordIds,
    bool includeNullsForUnresolvableUsers
)

Parameters

  • includeNullsForUnresolvableUsers
    Type: System.Boolean

    A Boolean value specifying whether a a null reference (Nothing in Visual Basic) value will be returned for each record ID whenever a corresponding user profile is not found. This value is true by default.

Return value

Type: System.Collections.Generic.List<UserProfile>

Remarks

If includeNullsForUnresolvableUsers is true (its default value), this method returns the same number of user profiles as the number of specified user record IDs. A a null reference (Nothing in Visual Basic) value is returned for every record ID that does not have a corresponding user profile. If includeNullsForUnresolvableUsers is false, then no value will be returned whenever a user profile is not found, and as a side effect the order of the user record IDs will not be maintained.

See also

Reference

SocialDataManager class

SocialDataManager members

GetBulkUserProfiles overload

Microsoft.Office.Server.SocialData namespace