Share via


RangeSet.IEnumerable.GetEnumerator Method

Gets an object that can be used to enumerate the list of Range objects.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

Syntax

'Declaration
Private Function GetEnumerator As IEnumerator
    Implements IEnumerable.GetEnumerator
'Usage
Dim instance As RangeSet
Dim returnValue As IEnumerator

returnValue = CType(instance, IEnumerable).GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
private:
virtual IEnumerator^ GetEnumerator() sealed = IEnumerable::GetEnumerator
private abstract GetEnumerator : unit -> IEnumerator 
private override GetEnumerator : unit -> IEnumerator 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Return Value

Type: System.Collections.IEnumerator
An IEnumerator object that can be used to iterate through the range set collection.

Implements

IEnumerable.GetEnumerator()

Remarks

This member is implemented explicitly. Code that accesses this method must first cast RangeSet to the IEnumerable interface.

See Also

Reference

RangeSet Class

Microsoft.Synchronization Namespace