Share via


SPPolicyCollection.GetEnumerator Method

Returns an enumerator to iterate through the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function GetEnumerator As IEnumerator
'Usage
Dim instance As SPPolicyCollection
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public IEnumerator GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
A System.Collections.IEnumerator interface.

Implements

IEnumerable.GetEnumerator()

See Also

Reference

SPPolicyCollection Class

SPPolicyCollection Members

Microsoft.SharePoint.Administration Namespace