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