CustomTaskPaneCollection.IEnumerable<CustomTaskPane>.GetEnumerator Method (2007 System)
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()
private:
virtual IEnumerator<CustomTaskPane^>^ GetEnumerator() sealed = IEnumerable<CustomTaskPane^>::GetEnumerator
JScript does not support explicit interface implementations.
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
- 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
CustomTaskPaneCollection Class