Метод ObjectSharingInformation.GetObjectSharingInformation
Gets information about the sharing state for a specified securable object.
Пространство имен: 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 GetObjectSharingInformation ( _
context As ClientRuntimeContext, _
securableObject As SecurableObject, _
excludeCurrentUser As Boolean, _
excludeSiteAdmin As Boolean, _
excludeSecurityGroups As Boolean, _
retrieveAnonymousLinks As Boolean, _
retrieveUserInfoDetails As Boolean, _
checkForAccessRequests As Boolean, _
retrievePermissionLevels As Boolean _
) As ObjectSharingInformation
'Применение
Dim context As ClientRuntimeContext
Dim securableObject As SecurableObject
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 retrievePermissionLevels As Boolean
Dim returnValue As ObjectSharingInformation
returnValue = ObjectSharingInformation.GetObjectSharingInformation(context, _
securableObject, excludeCurrentUser, _
excludeSiteAdmin, excludeSecurityGroups, _
retrieveAnonymousLinks, retrieveUserInfoDetails, _
checkForAccessRequests, retrievePermissionLevels)
public static ObjectSharingInformation GetObjectSharingInformation(
ClientRuntimeContext context,
SecurableObject securableObject,
bool excludeCurrentUser,
bool excludeSiteAdmin,
bool excludeSecurityGroups,
bool retrieveAnonymousLinks,
bool retrieveUserInfoDetails,
bool checkForAccessRequests,
bool retrievePermissionLevels
)
Параметры
context
Тип: Microsoft.SharePoint.Client.ClientRuntimeContextThe runtime context.
securableObject
Тип: Microsoft.SharePoint.Client.SecurableObjectSpecifies the securable object for which to obtain sharing information.
excludeCurrentUser
Тип: System.BooleanSpecifies whether the returned sharing information should exclude information about the current user. If true, the current user information is excluded.
excludeSiteAdmin
Тип: System.BooleanSpecifies whether the returned sharing information should exclude information about site administration users. If true, the site administration user information is excluded.
excludeSecurityGroups
Тип: System.BooleanSpecifies whether the returned sharing information should exclude security groups from the list of shared with users. If true, security groups are excluded.
retrieveAnonymousLinks
Тип: System.BooleanSpecifies whether the returned sharing information should include information about anonymous links. If true, information about anonymous links is included.
retrieveUserInfoDetails
Тип: System.BooleanSpecifies whether the returned sharing information should include additional user information. If true, additional user information is included.
checkForAccessRequests
Тип: System.BooleanSpecifies whether to retrieve access requests information. If true, access requests information is retrieved.
retrievePermissionLevels
Тип: System.BooleanSpecifies whether to retrieve sharing information with permission levels. This is only applicable for document sharing in a library that has IsDocumentSharingEnabled as true and the View and Edit role definitions exist. When these conditions are met, this method will retrieve sharing information for the document with permission levels. One example of this usage is Shared With Dialog, in which it displays permission levels for document sharing when IsDocumentSharingEnabled is enabled.
Возвращаемое значение
Тип: Microsoft.SharePoint.Client.ObjectSharingInformation
The securable object sharing information.
См. также
Справочные материалы
ObjectSharingInformation класс