Share via


RankingModelCollection.CreateFromXML Method

Creates a new ranking model with the specified XML.

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

Syntax

'Declaration
Public Function CreateFromXML ( _
    rankingModelXml As String _
) As RankingModel
'Usage
Dim instance As RankingModelCollection
Dim rankingModelXml As String
Dim returnValue As RankingModel

returnValue = instance.CreateFromXML(rankingModelXml)
public RankingModel CreateFromXML(
    string rankingModelXml
)

Parameters

Return Value

Type: Microsoft.Office.Server.Search.Administration.RankingModel
The ranking model that was created.

Remarks

After this method has created a new instance a new instance of the RankingModel, it adds the instance to the RankingModelCollection.

The ranking model XML is described in the Ranking Model Schema.

See Also

Reference

RankingModelCollection Class

RankingModelCollection Members

Microsoft.Office.Server.Search.Administration Namespace