Share via


Keyword.RemovePromotion Method

Removes a promotion with the specified name from 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 RemovePromotion ( _
    promotionName As String _
) As Boolean
'Usage
Dim instance As Keyword
Dim promotionName As String
Dim returnValue As Boolean

returnValue = instance.RemovePromotion(promotionName)
bool RemovePromotion(
    string promotionName
)

Parameters

  • promotionName
    Type: System.String

    The name of the promotion to remove.

Return Value

Type: System.Boolean
[true] if the promotion could be removed, [false] otherwise.

See Also

Reference

Keyword Interface

Keyword Members

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