WebSharingManager.UpdateWebSharingInformation 方法
命名空間: 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 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)
'用途
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
)
參數
- userRoleAssignments
類型:System.Collections.Generic.IList<UserRoleAssignment>
- sendServerManagedNotification
類型:System.Boolean
- customMessage
類型:System.String
- additivePermission
類型:System.Boolean
- allowExternalSharing
類型:System.Boolean
傳回值
類型:System.Collections.Generic.IList<UserSharingResult>