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
settingFlag
Type: Microsoft.Office.Server.Search.Administration.UserPreference.SettingsA flag that indicates the user Search preference to check.
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.