Share via


UserPreference.IsCustomSettingEnabled Method

Determines whether the custom setting of the Search 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 IsCustomSettingEnabled ( _
    settingFlag As ULong _
) As Boolean
'Usage
Dim instance As UserPreference
Dim settingFlag As ULong
Dim returnValue As Boolean

returnValue = instance.IsCustomSettingEnabled(settingFlag)
public bool IsCustomSettingEnabled(
    ulong settingFlag
)

Parameters

  • settingFlag
    Type: System.UInt64

    A bitmask that indicates the custom setting.

Return Value

Type: System.Boolean
true if the custom setting is enabled; otherwise, false.

Remarks

This method performs a bitwise OR operation with the value of the settingFlag parameter and the value of the custom setting of the Search user preference.

See Also

Reference

UserPreference Class

UserPreference Members

Microsoft.Office.Server.Search.Administration Namespace