WebSharingManager.UpdateWebSharingInformation method
Namespace: Microsoft.SharePoint.Client.Sharing
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Shared Function UpdateWebSharingInformation ( _
context As ClientRuntimeContext, _
web As Web, _
userRoleAssignments As IList(Of UserRoleAssignment), _
sendServerManagedNotification As Boolean, _
customMessage As String, _
additivePermission As Boolean, _
allowExternalSharing As Boolean _
) As IList(Of UserSharingResult)
'Usage
Dim context As ClientRuntimeContext
Dim web As Web
Dim userRoleAssignments As IList(Of UserRoleAssignment)
Dim sendServerManagedNotification As Boolean
Dim customMessage As String
Dim additivePermission As Boolean
Dim allowExternalSharing As Boolean
Dim returnValue As IList(Of UserSharingResult)
returnValue = WebSharingManager.UpdateWebSharingInformation(context, _
web, userRoleAssignments, sendServerManagedNotification, _
customMessage, additivePermission, _
allowExternalSharing)
public static IList<UserSharingResult> UpdateWebSharingInformation(
ClientRuntimeContext context,
Web web,
IList<UserRoleAssignment> userRoleAssignments,
bool sendServerManagedNotification,
string customMessage,
bool additivePermission,
bool allowExternalSharing
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
- web
Type: Microsoft.SharePoint.Client.Web
- userRoleAssignments
Type: System.Collections.Generic.IList<UserRoleAssignment>
- sendServerManagedNotification
Type: System.Boolean
- customMessage
Type: System.String
- additivePermission
Type: System.Boolean
- allowExternalSharing
Type: System.Boolean
Return value
Type: System.Collections.Generic.IList<UserSharingResult>