次の方法で共有


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 InventoryCatalogCollection object.

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

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator(Of InventoryCatalog)
'Usage
Dim instance As InventoryCatalogCollection
Dim returnValue As IEnumerator(Of InventoryCatalog)

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

Return Value

Type: System.Collections.Generic..::.IEnumerator<(Of <(InventoryCatalog>)>)
Handle to an IEnumerator interface implementation for this collection. An Enumerator object for the InventoryCatalogCollection 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

InventoryCatalogCollection Class

InventoryCatalogCollection Members

Microsoft.CommerceServer.Inventory Namespace