Share via


SPDatabaseSnapshotCollection.GetEnumerator method

Returns an enumerator that can be used to iterate through the collection.

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

Syntax

'Declaration
Public Function GetEnumerator As IEnumerator(Of SPDatabaseSnapshot)
'Usage
Dim instance As SPDatabaseSnapshotCollection
Dim returnValue As IEnumerator(Of SPDatabaseSnapshot)

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

Return value

Type: System.Collections.Generic.IEnumerator<SPDatabaseSnapshot>
An object that can iterate the collection.

Implements

IEnumerable<T>.GetEnumerator()

See also

Reference

SPDatabaseSnapshotCollection class

SPDatabaseSnapshotCollection members

Microsoft.SharePoint.Administration.Backup namespace