Compartilhar via


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

  • querySetId
    Type: System.Int32

    A identificação da consulta definida.

  • modelId
    Type: System.Guid

    O 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

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace