Share via


UserPreference.IsSettingEnabled Method

Determines whether a user preference is enabled.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function IsSettingEnabled ( _
    settingFlag As UserPreference.Settings _
) As Boolean
'Usage
Dim instance As UserPreference
Dim settingFlag As UserPreference.Settings
Dim returnValue As Boolean

returnValue = instance.IsSettingEnabled(settingFlag)
public bool IsSettingEnabled(
    UserPreference.Settings settingFlag
)

Parameters

Return Value

Type: System.Boolean
true if the user Search preference is enabled; otherwise, false.

Remarks

This method performs a bitwise OR operation of the value of the settingFlag parameter and the value of the user preferences.

See Also

Reference

UserPreference Class

UserPreference Members

Microsoft.Office.Server.Search.Administration Namespace