Jaa


GetEnumerator Method

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

Returns an enumerator that can be used to enumerate over all of the strongly-typed and non-strongly-typed properties exposed by the current order group instance.

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

Syntax

'Declaration
Public Overridable Function GetEnumerator As IEnumerator
'Usage
Dim instance As OrderGroup
Dim returnValue As IEnumerator

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

Return Value

Type: System.Collections..::.IEnumerator
An IEnumerator containing properties of the current instance.

Implements

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

Exceptions

Exception Condition
InvalidOperationException

The order group has been disposed, either directly or by conversion from an OrderTemplate to a Basket or a Basket to a PurchaseOrder.

Remarks

Use this method to retrieve the enumerator for the OrdrGroup.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace