Share via


SPObjectModelTypeCollection.IEnumerable<SPObjectModelType>.GetEnumerator method

Retrieves the collection enumerator type.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Private Function GetEnumerator As IEnumerator(Of SPObjectModelType)
    Implements IEnumerable(Of SPObjectModelType).GetEnumerator
'Usage
Dim instance As SPObjectModelTypeCollection
Dim returnValue As IEnumerator(Of SPObjectModelType)

returnValue = CType(instance, IEnumerable(Of SPObjectModelType)).GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
IEnumerator<SPObjectModelType> IEnumerable<SPObjectModelType>.GetEnumerator()

Return value

Type: System.Collections.Generic.IEnumerator<SPObjectModelType>
A IEnumerator<T> object. Internal command is: return Types.Values.GetEnumerator();.

Implements

IEnumerable<T>.GetEnumerator()

See also

Reference

SPObjectModelTypeCollection class

SPObjectModelTypeCollection members

Microsoft.SharePoint.Administration namespace