DocumentSharingManager.UpdateDocumentSharingInfo 方法
命名空間: Microsoft.SharePoint.Client.Sharing
組件: 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 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)
'用途
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
)
參數
- resourceAddress
類型:System.String
- userRoleAssignments
類型:System.Collections.Generic.IList<UserRoleAssignment>
- validateExistingPermissions
類型:System.Boolean
- additiveMode
類型:System.Boolean
- sendServerManagedNotification
類型:System.Boolean
- customMessage
類型:System.String
- includeAnonymousLinksInNotification
類型:System.Boolean
- propagateAcl
類型:System.Boolean
傳回值
類型:System.Collections.Generic.IList<UserSharingResult>