GetEnumerator Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Returns an enumerator to iterate through the current SiteTermElementCollection.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Overridable Function GetEnumerator As IEnumerator
'Usage
Dim instance As SiteTermElementCollection
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 that can enumerate the entire collection of SiteTermElement objects.
Implements
IEnumerable..::.GetEnumerator()()()
Remarks
Use this method to retrieve the enumerator for the SiteTermElementCollection.
Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
SiteTermElementCollection Class