다음을 통해 공유


SearchContext.UpdateQueryLoggingEnabled Method

NOTE: This API is now obsolete.

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
<ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")> _
Public Sub UpdateQueryLoggingEnabled ( _
    enableQueryLogging As Boolean _
)
'Usage
Dim instance As SearchContext
Dim enableQueryLogging As Boolean

instance.UpdateQueryLoggingEnabled(enableQueryLogging)
[ObsoleteAttribute("This class is obsolete now. Please use SearchServiceApplication and SearchServiceApplicationProxy instead.")]
public void UpdateQueryLoggingEnabled(
    bool enableQueryLogging
)

Parameters

  • enableQueryLogging
    Type: System.Boolean

    Specify true to enable query logging; otherwise, false to disable query logging.

See Also

Reference

SearchContext Class

SearchContext Members

Microsoft.Office.Server.Search.Administration Namespace