Class PromotionItemCollectionEnumerator
Implements operations for and represents the enumerator for the promotion item collection.
Inheritance
Implements
Inherited Members
Namespace: Mediachase.Commerce.Marketing.Objects
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
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()