SPDocumentSharingManager.UpdateDocumentSharingInfo 方法

包含用作参数以初始化

命名空间:  Microsoft.SharePoint.Sharing
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Shared Function UpdateDocumentSharingInfo ( _
    resourceAddress As String, _
    userRoleAssignments As List(Of UserRoleAssignment), _
    validateExistingPermissions As Boolean, _
    additiveMode As Boolean, _
    sendServerManagedNotification As Boolean, _
    customMessage As String, _
    includeAnonymousLinksInNotification As Boolean _
) As List(Of UserSharingResult)
用法
Dim resourceAddress As String
Dim userRoleAssignments As List(Of UserRoleAssignment)
Dim validateExistingPermissions As Boolean
Dim additiveMode As Boolean
Dim sendServerManagedNotification As Boolean
Dim customMessage As String
Dim includeAnonymousLinksInNotification As Boolean
Dim returnValue As List(Of UserSharingResult)

returnValue = SPDocumentSharingManager.UpdateDocumentSharingInfo(resourceAddress, _
    userRoleAssignments, validateExistingPermissions, _
    additiveMode, sendServerManagedNotification, _
    customMessage, includeAnonymousLinksInNotification)
public static List<UserSharingResult> UpdateDocumentSharingInfo(
    string resourceAddress,
    List<UserRoleAssignment> userRoleAssignments,
    bool validateExistingPermissions,
    bool additiveMode,
    bool sendServerManagedNotification,
    string customMessage,
    bool includeAnonymousLinksInNotification
)

参数

  • resourceAddress
    类型:System.String

    URL 指向的可保护对象 (文档、 文件夹或文档库的根文件夹)。

  • additiveMode
    类型:System.Boolean

    一个布尔型标志指示的权限设置是否使用加法或严格模式: 真-累加性 ;false — 严格。

  • sendServerManagedNotification
    类型:System.Boolean

    一个标志,指示服务器生成电子邮件通知如果 SharePoint 服务器上配置电子邮件服务器。

  • customMessage
    类型:System.String

    自定义要包括在电子邮件通知中的消息

  • includeAnonymousLinksInNotification
    类型:System.Boolean

    Boolean 标志,用于指示是否包括匿名访问通知邮件中的链接: 真是指包括 ;false 表示不包含。

返回值

类型:System.Collections.Generic.List<UserSharingResult>
一个DocumentSharingResult对象,该对象包含用户为每个收件人共享结果

另请参阅

引用

SPDocumentSharingManager 类

SPDocumentSharingManager 成员

Microsoft.SharePoint.Sharing 命名空间