PackagePartCollection.GetEnumerator Method ()


Returns an enumerator for iterating through the parts in the collection.

Namespace:   System.IO.Packaging
Assembly:  WindowsBase (in WindowsBase.dll)

public IEnumerator<PackagePart> GetEnumerator()

Return Value

Type: System.Collections.Generic.IEnumerator<PackagePart>

An enumerator for iterating through the PackagePart elements in the collection.

The collection accessed by the enumerator is invalidated after any change occurs to the underlying collection. The underlying collection can change when the Package.CreatePart method or Package.DeletePart method is called.

.NET Framework
Available since 3.0
Return to top