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.StringThe 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
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace