LEADTOOLS Multimedia (Leadtools.Multimedia assembly) Send comments on this topic. | Back to Introduction | Help Version 17.0.3.22
GetEnumerator Method
See Also 
Leadtools.Multimedia Namespace > CaptureSubTypes Class : GetEnumerator Method



Returns an enumerator that iterates through the collection.

Syntax

Visual Basic (Declaration) 
Public Function GetEnumerator() As IEnumerator
Visual Basic (Usage)Copy Code
Dim instance As CaptureSubTypes
Dim value As IEnumerator
 
value = instance.GetEnumerator()
C# 
public IEnumerator GetEnumerator()
C++/CLI 
public:
IEnumerator^ GetEnumerator(); 

Return Value

System.Collections.IEnumerator

Remarks

The foreach statement of the C# language (for each in C++, For Each in Visual Basic) hides the complexity of the enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator. Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also