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
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerO proprietário da hierarquia do site de pesquisa.
querySetId
Type: System.Int32O conjunto de consulta.
userQuery
Type: System.StringA consulta de ajuste.
Valor retornado
Type: System.Int32
O resultado. 0 indica êxito; -1 indica um erro.
Ver também
Referência
SearchServiceApplicationProxy class