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
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
querySetId
Type: System.Int32The query set.
userQuery
Type: System.StringThe tuning query.
Return value
Type: System.Int32
The result. 0 indicates successful; -1 indicates an error.
See also
Reference
SearchServiceApplicationProxy class