BindingContext::IEnumerable::GetEnumerator Method ()
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Gets an enumerator for the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Implements
IEnumerable::GetEnumerator()The IEnumerator returned by the IEnumerable::GetEnumerator method allows you to iterate over the collection managed by the BindingContext.
The following code example uses the IEnumerable::GetEnumerator method to return an IEnumerator for the BindingContext.
private: void GetManagerEnumerator() { IEnumerator^ myEnumerator; myEnumerator = ( (IEnumerable^)(this->BindingContext) )->GetEnumerator(); ForEachEnumerator(); } void ForEachEnumerator() { for each ( IEnumerator^ myEnumerator in ( (IEnumerable^)(this->BindingContext) ) ) { Console::WriteLine( myEnumerator ); } }
.NET Framework
Available since 1.1
Available since 1.1
Show: