Поделиться через


Метод ObjectSharingInformation.GetListItemSharingInformation

Gets information about the sharing state for a specified list item.

Пространство имен:  Microsoft.SharePoint.Client
Сборки:   Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)

Синтаксис

'Декларация
Public Shared Function GetListItemSharingInformation ( _
    context As ClientRuntimeContext, _
    listID As Guid, _
    itemID As Integer, _
    excludeCurrentUser As Boolean, _
    excludeSiteAdmin As Boolean, _
    excludeSecurityGroups As Boolean, _
    retrieveAnonymousLinks As Boolean, _
    retrieveUserInfoDetails As Boolean, _
    checkForAccessRequests As Boolean _
) As ObjectSharingInformation
'Применение
Dim context As ClientRuntimeContext
Dim listID As Guid
Dim itemID As Integer
Dim excludeCurrentUser As Boolean
Dim excludeSiteAdmin As Boolean
Dim excludeSecurityGroups As Boolean
Dim retrieveAnonymousLinks As Boolean
Dim retrieveUserInfoDetails As Boolean
Dim checkForAccessRequests As Boolean
Dim returnValue As ObjectSharingInformation

returnValue = ObjectSharingInformation.GetListItemSharingInformation(context, _
    listID, itemID, excludeCurrentUser, _
    excludeSiteAdmin, excludeSecurityGroups, _
    retrieveAnonymousLinks, retrieveUserInfoDetails, _
    checkForAccessRequests)
public static ObjectSharingInformation GetListItemSharingInformation(
    ClientRuntimeContext context,
    Guid listID,
    int itemID,
    bool excludeCurrentUser,
    bool excludeSiteAdmin,
    bool excludeSecurityGroups,
    bool retrieveAnonymousLinks,
    bool retrieveUserInfoDetails,
    bool checkForAccessRequests
)

Параметры

  • listID
    Тип: System.Guid

    The identifier of the list for which to obtain sharing information.

  • itemID
    Тип: System.Int32

    The identifier of the list item for which to obtain sharing information.

  • excludeCurrentUser
    Тип: System.Boolean

    Specifies whether the returned sharing information should exclude information about the current user. If true, the current user information is excluded.

  • excludeSiteAdmin
    Тип: System.Boolean

    Specifies whether the returned sharing information should exclude information about site administration users. If true, the site administration user information is excluded.

  • excludeSecurityGroups
    Тип: System.Boolean

    Specifies whether the returned sharing information should exclude security groups from the list of shared with users. If true, security groups are excluded.

  • retrieveAnonymousLinks
    Тип: System.Boolean

    Specifies whether the returned sharing information should include information about anonymous links. If true, information about anonymous links is included.

  • retrieveUserInfoDetails
    Тип: System.Boolean

    Specifies whether the returned sharing information should include additional user information. If true, additional user information is included.

  • checkForAccessRequests
    Тип: System.Boolean

    Specifies whether to retrieve access requests information. If true, access requests information is retrieved.

Возвращаемое значение

Тип: Microsoft.SharePoint.Client.ObjectSharingInformation
The list item sharing information.

См. также

Справочные материалы

ObjectSharingInformation класс

Элементы ObjectSharingInformation

Пространство имен Microsoft.SharePoint.Client