Dijeli putem


GetEnumerator Method

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

Use this method to return a reference to an enumerator object, which is used to iterate over the InventorySkuCollection object.

Namespace:  Microsoft.CommerceServer.Inventory
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator(Of InventorySku)
'Usage
Dim instance As InventorySkuCollection
Dim returnValue As IEnumerator(Of InventorySku)

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

Return Value

Type: System.Collections.Generic..::.IEnumerator<(Of <(InventorySku>)>)
Handle to an IEnumerator interface implementation for this collection. An Enumerator object for the InventorySkuCollection instance.

Implements

IEnumerable<(Of <(T>)>)..::.GetEnumerator()()()

Remarks

Enumerators only allow reading the data in the collection. Enumerators cannot be used to modify the underlying collection.

Permissions

See Also

Reference

InventorySkuCollection Class

InventorySkuCollection Members

Microsoft.CommerceServer.Inventory Namespace