RankProfileCollection.Create Method (String, RankProfile)

SharePoint 2010

Adds a new rank profile to the rank profile collection. The rank profile is created with the same settings as another rank profile provided through the rankProfileTemplate parameter.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Schema
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

RankProfile Create(
	string Name,
	RankProfile rankProfileTemplate
)

Parameters

Name
Type: System.String

A string that specifies the name of the rank profile.

rankProfileTemplate
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.RankProfile

A RankProfile that specifies the rank profile settings to use for the new rank profile.

ExceptionCondition
AdminException

if the configuration deployment fails. A specific error message will provide further details along with the exception.

Show: