SearchServiceApplication.CreateOrUpdateQuerySet method
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaração
Public Function CreateOrUpdateQuerySet ( _
searchObjectOwner As SearchObjectOwner, _
querySetId As Integer, _
querySetName As String, _
modelId As Guid _
) As Integer
'Uso
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim querySetId As Integer
Dim querySetName As String
Dim modelId As Guid
Dim returnValue As Integer
returnValue = instance.CreateOrUpdateQuerySet(searchObjectOwner, _
querySetId, querySetName, modelId)
public int CreateOrUpdateQuerySet(
SearchObjectOwner searchObjectOwner,
int querySetId,
string querySetName,
Guid modelId
)
Parâmetros
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerO proprietário da hierarquia do site de pesquisa.
querySetId
Type: System.Int32A identificação da consulta definida.
querySetName
Type: System.StringDefina o nome da consulta.
modelId
Type: System.GuidO modelo de classificação para associar a consulta configurada.
Valor retornado
Type: System.Int32
O resultado. 0 indica êxito; -1 indica um erro.
Ver também
Referência
SearchServiceApplication class