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.
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
name
Type: System.StringThe name of the promotion to locate.
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
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace