Compartilhar via


SearchServiceApplicationProxy.AddQueryToQuerySet method

Adiciona uma única TuningQuery em um conjunto de consulta.

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

Syntax

'Declaração
Public Function AddQueryToQuerySet ( _
    searchObjectOwner As SearchObjectOwner, _
    querySetId As Integer, _
    userQuery As String _
) As Integer
'Uso
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
)

Parâmetros

Valor retornado

Type: System.Int32
O resultado. 0 indica êxito; -1 indica um erro.

Ver também

Referência

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace