Share via


GetEnumerator Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Returns an enumerator that can iterate through the current ContentSelectionContext.

Namespace:  Microsoft.CommerceServer.Runtime.Targeting
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator
'Usage
Dim instance As ContentSelectionContext
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator()
public IEnumerator GetEnumerator()
public:
virtual IEnumerator^ GetEnumerator() sealed
public final function GetEnumerator() : IEnumerator

Return Value

Type: System.Collections..::.IEnumerator
An IEnumerator object for enumerating key names (strings) in the dictionary.

Implements

IEnumerable..::.GetEnumerator()()()

Remarks

Use this method to retrieve the enumerator for enumerating the keys in the dictionary of key-value pairs that this selection context object represents.

Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.

Permissions

See Also

Reference

ContentSelectionContext Class

ContentSelectionContext Members

Microsoft.CommerceServer.Runtime.Targeting Namespace