SearchServiceApplication.DeleteDraftTuningModel method

SharePoint 2013

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)

public int DeleteDraftTuningModel(
	SearchObjectOwner searchObjectOwner,
	Guid modelId
)

Parameters

searchObjectOwner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwner

The owner of the search site hierarchy.

modelId
Type: System.Guid

The draft ranking model to be deleted.

Return value

Type: System.Int32
The result. 0 indicates successful; -1 indicates an error.
Show: