PluggableSocialSecurityTrimmerManager.SetTrimmerSettings method (SPServiceContext, String[], String[])
Updates the trimmer setting based on the URLs associated with the security trimming heuristics and the URLs that are always included in the results set returned to a user.
Namespace: Microsoft.Office.Server.SocialData
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Shared Sub SetTrimmerSettings ( _
serviceContext As SPServiceContext, _
urlFoldersRequiringTrim As String(), _
urlFoldersToAlwaysAllow As String() _
)
'Usage
Dim serviceContext As SPServiceContext
Dim urlFoldersRequiringTrim As String()
Dim urlFoldersToAlwaysAllow As String()
PluggableSocialSecurityTrimmerManager.SetTrimmerSettings(serviceContext, _
urlFoldersRequiringTrim, urlFoldersToAlwaysAllow)
public static void SetTrimmerSettings(
SPServiceContext serviceContext,
string[] urlFoldersRequiringTrim,
string[] urlFoldersToAlwaysAllow
)
Parameters
serviceContext
Type: Microsoft.SharePoint.SPServiceContextThe service application context.
urlFoldersRequiringTrim
Type: []The URLs associated with the security trimming heuristics.
urlFoldersToAlwaysAllow
Type: []The URLs that are always included in the results set returned to a user.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | serviceContext is null . |
Remarks
This method sets the trimmer setting.
See also
Reference
PluggableSocialSecurityTrimmerManager class