Share via


RankingModelCollection.EnsureDefault Method

Ensures that the only specified RankingModel is set as the default model.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Sub EnsureDefault ( _
    id As Guid _
)
'Usage
Dim instance As RankingModelCollection
Dim id As Guid

instance.EnsureDefault(id)
public void EnsureDefault(
    Guid id
)

Parameters

Remarks

This method throws a Exception if a ranking model that matches the specified GUID is not found.

See Also

Reference

RankingModelCollection Class

RankingModelCollection Members

Microsoft.Office.Server.Search.Administration Namespace