SPWebPartCollection.GetEnumerator Method
NOTE: This API is now obsolete.
Obsolete. Returns an enumerator to iterate through the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Function GetEnumerator As IEnumerator
'Usage
Dim instance As SPWebPartCollection
Dim returnValue As IEnumerator
returnValue = instance.GetEnumerator()
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public IEnumerator GetEnumerator()
Return Value
Type: System.Collections.IEnumerator
A System.Collections.IEnumerator interface.