Share via


SPContentDatabase.GetSitesFromSids method

Returns the site collections that correspond to specific security identifiers (SIDs).

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

Syntax

'Declaration
Public Function GetSitesFromSids ( _
    UserSids As List(Of Byte()), _
    includeInactiveUsers As Boolean _
) As SortedList(Of Guid, SortedList(Of Integer, Byte()))
'Usage
Dim instance As SPContentDatabase
Dim UserSids As List(Of Byte())
Dim includeInactiveUsers As Boolean
Dim returnValue As SortedList(Of Guid, SortedList(Of Integer, Byte()))

returnValue = instance.GetSitesFromSids(UserSids, _
    includeInactiveUsers)
public SortedList<Guid, SortedList<int, byte[]>> GetSitesFromSids(
    List<byte[]> UserSids,
    bool includeInactiveUsers
)

Parameters

  • includeInactiveUsers
    Type: System.Boolean

    true to include users who are inactive; otherwise false.

Return value

Type: System.Collections.Generic.SortedList<Guid, SortedList<Int32, []>>
Site collections of key/value pairs that are sorted by key.

See also

Reference

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace