RankProfileCollection.Create Method (String, RankProfile)

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)

Syntax

'Declaration
Function Create ( _
    Name As String, _
    rankProfileTemplate As RankProfile _
) As RankProfile
'Usage
Dim instance As RankProfileCollection
Dim Name As String
Dim rankProfileTemplate As RankProfile
Dim returnValue As RankProfile

returnValue = instance.Create(Name, rankProfileTemplate)
RankProfile Create(
    string Name,
    RankProfile rankProfileTemplate
)

Parameters

  • Name
    Type: System.String

    A string that specifies the name of the rank profile.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.RankProfile
A RankProfile object.

Exceptions

Exception Condition
AdminException

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

See Also

Reference

RankProfileCollection Interface

RankProfileCollection Members

Create Overload

Microsoft.SharePoint.Search.Extended.Administration.Schema Namespace