ObjectSharingInformation.GetObjectSharingInformationByUrl method
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Shared Function GetObjectSharingInformationByUrl ( _
context As ClientRuntimeContext, _
objectUrl As String, _
excludeCurrentUser As Boolean, _
excludeSiteAdmin As Boolean, _
excludeSecurityGroups As Boolean, _
retrieveAnonymousLinks As Boolean, _
retrieveUserInfoDetails As Boolean, _
checkForAccessRequests As Boolean, _
retrievePermissionLevels As Boolean _
) As ObjectSharingInformation
'Usage
Dim context As ClientRuntimeContext
Dim objectUrl As String
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.GetObjectSharingInformationByUrl(context, _
objectUrl, excludeCurrentUser, excludeSiteAdmin, _
excludeSecurityGroups, retrieveAnonymousLinks, _
retrieveUserInfoDetails, checkForAccessRequests, _
retrievePermissionLevels)
public static ObjectSharingInformation GetObjectSharingInformationByUrl(
ClientRuntimeContext context,
string objectUrl,
bool excludeCurrentUser,
bool excludeSiteAdmin,
bool excludeSecurityGroups,
bool retrieveAnonymousLinks,
bool retrieveUserInfoDetails,
bool checkForAccessRequests,
bool retrievePermissionLevels
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
- objectUrl
Type: System.String
- excludeCurrentUser
Type: System.Boolean
- excludeSiteAdmin
Type: System.Boolean
- excludeSecurityGroups
Type: System.Boolean
- retrieveAnonymousLinks
Type: System.Boolean
- retrieveUserInfoDetails
Type: System.Boolean
- checkForAccessRequests
Type: System.Boolean
- retrievePermissionLevels
Type: System.Boolean
Return value
Type: Microsoft.SharePoint.Client.ObjectSharingInformation
See also
Reference
ObjectSharingInformation class