November Happy Hour will be moved to Thursday December 5th.

Class PromotionItemCollectionEnumerator

Implements operations for and represents the enumerator for the promotion item collection.

Inheritance
System.Object
PromotionItemCollectionEnumerator
Implements
System.Collections.Generic.IEnumerator<PromotionItem>
System.IDisposable
System.Collections.IEnumerator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Marketing.Objects
Assembly: Mediachase.Commerce.dll
Version: 12.17.2
Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public sealed class PromotionItemCollectionEnumerator : IEnumerator<PromotionItem>, IDisposable, IEnumerator

Properties

Current

Gets the element in the collection at the current position of the enumerator.

Declaration
public PromotionItem Current { get; }
Property Value
Type Description
PromotionItem

Explicit Interface Implementations

IEnumerator<PromotionItem>.Current

Gets the element in the collection at the current position of the enumerator.

Declaration
PromotionItem IEnumerator<PromotionItem>.Current { get; }
Returns
Type Description
PromotionItem

IEnumerator.Current

Gets the element in the collection at the current position of the enumerator.

Declaration
object IEnumerator.Current { get; }
Returns
Type Description
System.Object

IEnumerator.MoveNext()

Advances the enumerator to the next element of the collection.

Declaration
bool IEnumerator.MoveNext()
Returns
Type Description
System.Boolean

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Exceptions
Type Condition
System.InvalidOperationException

The collection was modified after the enumerator was created.

IEnumerator.Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

Declaration
void IEnumerator.Reset()
Exceptions
Type Condition
System.InvalidOperationException

The collection was modified after the enumerator was created.

IDisposable.Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
void IDisposable.Dispose()

Implements

System.Collections.Generic.IEnumerator<T>
System.IDisposable
System.Collections.IEnumerator