CustomTaskPaneCollection.IEnumerable<CustomTaskPane>.GetEnumerator Method

Returns a generic enumerator that iterates through the CustomTaskPaneCollection.

Namespace:  Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Private Function GetEnumerator As IEnumerator(Of CustomTaskPane)
    Implements IEnumerable(Of CustomTaskPane).GetEnumerator
'Usage
Dim instance As CustomTaskPaneCollection
Dim returnValue As IEnumerator(Of CustomTaskPane)

returnValue = CType(instance, IEnumerable(Of CustomTaskPane)).GetEnumerator()
IEnumerator<CustomTaskPane> IEnumerable<CustomTaskPane>.GetEnumerator()

Return Value

Type: System.Collections.Generic.IEnumerator<CustomTaskPane>
An IEnumerator<T> that can be used to iterate through the CustomTaskPaneCollection.

Implements

IEnumerable<T>.GetEnumerator()

Exceptions

Exception Condition
ObjectDisposedException

The Dispose method has already been called on the CustomTaskPaneCollection.

Remarks

For more information about generic enumerators, see Overview of Generics in the .NET Framework.

.NET Framework Security

See Also

Reference

CustomTaskPaneCollection Class

CustomTaskPaneCollection Members

Microsoft.Office.Tools Namespace