SearchServiceApplicationProxy.AddQueryToQuerySet method

Adds a single TuningQuery into a query set.

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

Syntax

'Declaration
Public Function AddQueryToQuerySet ( _
    searchObjectOwner As SearchObjectOwner, _
    querySetId As Integer, _
    userQuery As String _
) As Integer
'Usage
Dim instance As SearchServiceApplicationProxy
Dim searchObjectOwner As SearchObjectOwner
Dim querySetId As Integer
Dim userQuery As String
Dim returnValue As Integer

returnValue = instance.AddQueryToQuerySet(searchObjectOwner, _
    querySetId, userQuery)
public int AddQueryToQuerySet(
    SearchObjectOwner searchObjectOwner,
    int querySetId,
    string userQuery
)

Parameters

Return value

Type: System.Int32
The result. 0 indicates successful; -1 indicates an error.

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace