Share via


PromotionCollection.GetPromotion Method

Retrieves a promotion with a specified name.

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

Syntax

'Declaration
Function GetPromotion ( _
    name As String _
) As Promotion
'Usage
Dim instance As PromotionCollection
Dim name As String
Dim returnValue As Promotion

returnValue = instance.GetPromotion(name)
Promotion GetPromotion(
    string name
)

Parameters

  • name
    Type: System.String

    The name of the promotion to retrieve.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.Promotion
A Promotion representing the promotion with the specified name, or [null] if no such promotion exists.

See Also

Reference

PromotionCollection Interface

PromotionCollection Members

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