SearchServiceApplication.DeleteDraftTuningModel method
Deletes the temporary draft copy of a ranking model being tuned.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function DeleteDraftTuningModel ( _
searchObjectOwner As SearchObjectOwner, _
modelId As Guid _
) As Integer
'Usage
Dim instance As SearchServiceApplication
Dim searchObjectOwner As SearchObjectOwner
Dim modelId As Guid
Dim returnValue As Integer
returnValue = instance.DeleteDraftTuningModel(searchObjectOwner, _
modelId)
public int DeleteDraftTuningModel(
SearchObjectOwner searchObjectOwner,
Guid modelId
)
Parameters
searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe owner of the search site hierarchy.
modelId
Type: System.GuidThe draft ranking model to be deleted.
Return value
Type: System.Int32
The result. 0 indicates successful; -1 indicates an error.
See also
Reference
SearchServiceApplication class