Partilhar via


SPExternalBinaryIdCollection.GetEnumerator Method

Retrieves an IEnumerator<T> object to enumerate over a collection of binary ID values.

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

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator(Of SPExternalBinaryId)
'Usage
Dim instance As SPExternalBinaryIdCollection
Dim returnValue As IEnumerator(Of SPExternalBinaryId)

returnValue = instance.GetEnumerator()
public IEnumerator<SPExternalBinaryId> GetEnumerator()

Return Value

Type: System.Collections.Generic.IEnumerator<SPExternalBinaryId>
Returns an IEnumerator<T> object.

Implements

IEnumerable<T>.GetEnumerator()

Remarks

The foreach statement of the C# language (For Each in Visual Basic) hides the complexity of the enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator.

See Also

Reference

SPExternalBinaryIdCollection Class

SPExternalBinaryIdCollection Members

Microsoft.SharePoint Namespace

Microsoft.SharePoint.SPExternalBinaryId

SPSite.ExternalBinaryIds

IEnumerable<T>

Other Resources

Overview of External BLOB Storage in SharePoint Foundation

BLOB Access Interface: ISPExternalBinaryProvider