Share via


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

Return value

Type: System.Collections.Generic.IList<UserSharingResult>

See also

Reference

WebSharingManager class

WebSharingManager members

Microsoft.SharePoint.Client.Sharing namespace