SearchContext.UpdateQueryLoggingEnabled Method
Sets the value of the QueryLoggingEnabled property for the SearchContext class.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub UpdateQueryLoggingEnabled ( _
enableQueryLogging As Boolean _
)
'Usage
Dim instance As SearchContext
Dim enableQueryLogging As Boolean
instance.UpdateQueryLoggingEnabled(enableQueryLogging)
public void UpdateQueryLoggingEnabled(
bool enableQueryLogging
)
Parameters
- enableQueryLogging
Type: System.Boolean
Specify true to enable query logging; otherwise, false to disable query logging.