Share via


GetEnumerator Method

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

Retrieves an enumerator that can iterate through the property names of all the resource properties in the resource.

Namespace:  Microsoft.CommerceServer.Runtime.Configuration
Assembly:  Microsoft.CommerceServer.Shared (in Microsoft.CommerceServer.Shared.dll)

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator
'Usage
Dim instance As CommerceResource
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 that can iterate through the property names.

Implements

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

Remarks

Use this method to retrieve the enumerator to allow you to iterate through the CommerceResource collection.

Permissions

See Also

Reference

CommerceResource Class

CommerceResource Members

Microsoft.CommerceServer.Runtime.Configuration Namespace