Partilhar via


SearchServiceApplication.RecordQueryErrorEvent Method

Records the errors that have occurred during the processing of Search queries.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function RecordQueryErrorEvent ( _
    buffer As QueryErrorDataBuffer _
) As Boolean
'Usage
Dim instance As SearchServiceApplication
Dim buffer As QueryErrorDataBuffer
Dim returnValue As Boolean

returnValue = instance.RecordQueryErrorEvent(buffer)
public bool RecordQueryErrorEvent(
    QueryErrorDataBuffer buffer
)

Parameters

  • buffer
    Type: QueryErrorDataBuffer

    A buffer used to store the information about the query errors.

Return Value

Type: System.Boolean
true if the verbose query monitoring is turned on for the SearchServiceApplication; otherwise, false.

Remarks

This method records the information about errors that have occurred during the processing of all executed Search queries.

See Also

Reference

SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace