Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.Stringname 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
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace