RankingModel.Delete Method
Deletes the ranking model from the Search administration database.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub Delete
'Usage
Dim instance As RankingModel
instance.Delete()
public void Delete()
Remarks
This method deletes this RankingModel from the RankingModelCollection and removes the corresponding entry from the SearchAdminDatabase.
An InvalidOperationException is thrown if the IsDefault property of the RankingModel returns true, or if the IsCustomizable property of the RankingModel returns false.