Share via


PromotionCollection.Item Property

Retrieves a promotion.

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

Syntax

'Declaration
ReadOnly Default Property Item ( _
    identity As String _
) As Promotion
    Get
'Usage
Dim instance As PromotionCollection
Dim identity As String
Dim value As Promotion

value = instance(identity)
Promotion this[
    string identity
] { get; }

Parameters

  • identity
    Type: System.String

    The name of the promotion to be returned.

Property Value

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

See Also

Reference

PromotionCollection Interface

PromotionCollection Members

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