Share via


PromotionCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of promotions.

The PromotionCollection type exposes the following members.

Properties

  Name Description
Public property Count (Inherited from ICollection<Promotion>.)
Public property DemotionCount Gets the number of demotions in the promotion collection.
Public property IsReadOnly (Inherited from ICollection<Promotion>.)
Public property Item Retrieves a promotion.
Public property PromotionCount Gets the number of promotions with a positive (or zero) boost value in the promotion collection.

Top

Methods

  Name Description
Public method Add (Inherited from ICollection<Promotion>.)
Public method AddPromotion(String) Creates a promotion and adds it to the collection.
Public method AddPromotion(String, Context) Creates a promotion and adds it to the collection.
Public method AddPromotion(String, String, Int32, Nullable<DateTime>, Nullable<DateTime>, Context) Creates a promotion and adds it to the collection.
Public method Clear (Inherited from ICollection<Promotion>.)
Public method Contains (Inherited from ICollection<Promotion>.)
Public method ContainsPromotion Determines whether the promotion collection contains a specific promotion.
Public method CopyTo (Inherited from ICollection<Promotion>.)
Public method GetDemotionEnumerator() Returns an enumerator for all the promotions with a negative boost value. These promotions are called demotions.
Public method GetDemotionEnumerator(PromotionSortField, SortDirection) Returns an enumerator for all the promotions with a negative boost value in the collection, sorting on the specified field in the specified direction. These promotions are called demotions.
Public method GetDemotionEnumerator(PromotionSortField, SortDirection, Int32, Int32) Returns an enumerator for a subset of the promotions with a negative boost value in the collection, sorting on the specified field in the specified direction. These promotions are called demotions.
Public method GetEnumerator() (Inherited from IEnumerable<Promotion>.)
Public method GetEnumerator() (Inherited from IEnumerable.)
Public method GetEnumerator(PromotionSortField, SortDirection) Returns an enumerator for all the promotions in the collection, sorting on the specified field in the specified direction.
Public method GetEnumerator(PromotionSortField, SortDirection, Int32, Int32) Returns an enumerator for a subset of the promotions in the collection, sorting on the specified field in the specified direction.
Public method GetPromotion Retrieves a promotion with a specified name.
Public method GetPromotionEnumerator() Returns an enumerator for all the promotions with a positive (or zero) boost value.
Public method GetPromotionEnumerator(PromotionSortField, SortDirection) Returns an enumerator for all the promotions with a positive (or zero) boost value in the collection, sorting on the specified field in the specified direction.
Public method GetPromotionEnumerator(PromotionSortField, SortDirection, Int32, Int32) Returns an enumerator for a subset of the promotions with a positive (or zero) boost value in the collection, sorting on the specified field in the specified direction.
Public method Remove (Inherited from ICollection<Promotion>.)
Public method RemovePromotion Removes a promotion from the promotion collection.

Top

See Also

Reference

PromotionCollection Interface

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