Keyword.AddPromotion Method

Adds a new promotion for the keyword.

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

Syntax

'Declaration
Function AddPromotion ( _
    promotionName As String _
) As Promotion
'Usage
Dim instance As Keyword
Dim promotionName As String
Dim returnValue As Promotion

returnValue = instance.AddPromotion(promotionName)
Promotion AddPromotion(
    string promotionName
)

Parameters

  • promotionName
    Type: System.String

    name of the promotion to be added.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.Promotion
A Promotion representing the added promotion.

Exceptions

Exception Condition
AdminException

if a promotion with the same name already exists for this keyword.

See Also

Reference

Keyword Interface

Keyword Members

Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace