다음을 통해 공유


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.

Implements

IEnumerable.GetEnumerator()

See Also

Reference

SPWebPartCollection Class

SPWebPartCollection Members

Microsoft.SharePoint Namespace