共用方式為


SPContentDatabase.GetSitesFromSids method

會傳回對應的網站集合至特定的安全性識別碼 (Sid)。

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

Syntax

'宣告
Public Function GetSitesFromSids ( _
    UserSids As List(Of Byte()), _
    includeInactiveUsers As Boolean _
) As SortedList(Of Guid, SortedList(Of Integer, Byte()))
'用途
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
)

參數

  • includeInactiveUsers
    Type: System.Boolean

    包含使用者不在作用中 ; true否則false。

傳回值

Type: System.Collections.Generic.SortedList<Guid, SortedList<Int32, []>>
鍵所排序的索引鍵/值組的網站集合。

請參閱

參照

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace