Share via


PromotionCollection.ContainsPromotion Method

Determines whether the promotion collection contains a specific promotion.

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

Syntax

'Declaration
Function ContainsPromotion ( _
    name As String _
) As Boolean
'Usage
Dim instance As PromotionCollection
Dim name As String
Dim returnValue As Boolean

returnValue = instance.ContainsPromotion(name)
bool ContainsPromotion(
    string name
)

Parameters

Return Value

Type: System.Boolean
[true] if the promotion is found in the promotion collection; otherwise, [false].

Exceptions

Exception Condition
ArgumentNullException

The [name] is [null].

See Also

Reference

PromotionCollection Interface

PromotionCollection Members

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