Share via


SharePointSearchRuntime.SendRequest method (String, ResultCallback)

Submits an asynchronous request for the query to the SharePoint sites location, and retrieves the result for the asynchronous request.

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

Syntax

'Declaration
Public Function SendRequest ( _
    query As String, _
    callback As ResultCallback _
) As IAsyncResult
'Usage
Dim instance As SharePointSearchRuntime
Dim query As String
Dim callback As ResultCallback
Dim returnValue As IAsyncResult

returnValue = instance.SendRequest(query, _
    callback)
public IAsyncResult SendRequest(
    string query,
    ResultCallback callback
)

Parameters

  • query
    Type: System.String

    A string containing the location URL and the search query.

Return value

Type: System.IAsyncResult
The status of the asynchronous request

Implements

ILocationRuntime.SendRequest(String, ResultCallback)

See also

Reference

SharePointSearchRuntime class

SharePointSearchRuntime members

SendRequest overload

Microsoft.Office.Server.Search.Query namespace