DocumentSharingManager.UpdateDocumentSharingInfo method
Namespace: Microsoft.SharePoint.Client.Sharing
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Shared Function UpdateDocumentSharingInfo ( _
context As ClientRuntimeContext, _
resourceAddress As String, _
userRoleAssignments As IList(Of UserRoleAssignment), _
validateExistingPermissions As Boolean, _
additiveMode As Boolean, _
sendServerManagedNotification As Boolean, _
customMessage As String, _
includeAnonymousLinksInNotification As Boolean, _
propagateAcl As Boolean _
) As IList(Of UserSharingResult)
'Usage
Dim context As ClientRuntimeContext
Dim resourceAddress As String
Dim userRoleAssignments As IList(Of UserRoleAssignment)
Dim validateExistingPermissions As Boolean
Dim additiveMode As Boolean
Dim sendServerManagedNotification As Boolean
Dim customMessage As String
Dim includeAnonymousLinksInNotification As Boolean
Dim propagateAcl As Boolean
Dim returnValue As IList(Of UserSharingResult)
returnValue = DocumentSharingManager.UpdateDocumentSharingInfo(context, _
resourceAddress, userRoleAssignments, _
validateExistingPermissions, additiveMode, _
sendServerManagedNotification, _
customMessage, includeAnonymousLinksInNotification, _
propagateAcl)
public static IList<UserSharingResult> UpdateDocumentSharingInfo(
ClientRuntimeContext context,
string resourceAddress,
IList<UserRoleAssignment> userRoleAssignments,
bool validateExistingPermissions,
bool additiveMode,
bool sendServerManagedNotification,
string customMessage,
bool includeAnonymousLinksInNotification,
bool propagateAcl
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
- resourceAddress
Type: System.String
- userRoleAssignments
Type: System.Collections.Generic.IList<UserRoleAssignment>
- validateExistingPermissions
Type: System.Boolean
- additiveMode
Type: System.Boolean
- sendServerManagedNotification
Type: System.Boolean
- customMessage
Type: System.String
- includeAnonymousLinksInNotification
Type: System.Boolean
- propagateAcl
Type: System.Boolean
Return value
Type: System.Collections.Generic.IList<UserSharingResult>