Partilhar via


PluggableSocialSecurityTrimmerManager.SetTrimmerSettings Method (SPServiceContext, Boolean)

Updates the trimmer setting.

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, _
    enableTrimming As Boolean _
)
'Usage
Dim serviceContext As SPServiceContext
Dim enableTrimming As BooleanPluggableSocialSecurityTrimmerManager.SetTrimmerSettings(serviceContext, _
    enableTrimming)
public static void SetTrimmerSettings(
    SPServiceContext serviceContext,
    bool enableTrimming
)

Parameters

  • enableTrimming
    Type: System.Boolean

    true to enable the security trimming heuristics for all social data; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

serviceContext is null .

Remarks

The enableTrimming parameter specifies whether the security trimming heuristics are enabled. If the value is true, the security trimming heuristics must be enabled for all social data. If the value is false, the security trimming heuristics must be disabled for all social data.

See Also

Reference

PluggableSocialSecurityTrimmerManager Class

PluggableSocialSecurityTrimmerManager Members

SetTrimmerSettings Overload

Microsoft.Office.Server.SocialData Namespace