SearchServiceApplication.CreateOrUpdateQuerySet method
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function CreateOrUpdateQuerySet ( _
searchObjectOwner As SearchObjectOwner, _
querySetId As Integer, _
querySetName As String, _
modelId As Guid _
) As Integer
'Usage
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
)
Parameters
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
querySetId
Type: System.Int32The ID of the query set.
querySetName
Type: System.StringThe name of the query set.
modelId
Type: System.GuidThe ranking model to associate the query set with.
Return value
Type: System.Int32
The result. 0 indicates successful; -1 indicates an error.
See also
Reference
SearchServiceApplication class