EntitySet<TEntity>.IEnumerable<TEntity>.GetEnumerator Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Returns an enumerator for this entity set.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Private Function GetEnumerator As IEnumerator(Of TEntity)
    Implements IEnumerable(Of TEntity).GetEnumerator
'Usage
Dim instance As EntitySet
Dim returnValue As IEnumerator(Of TEntity)

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

Return Value

Type: System.Collections.Generic.IEnumerator<TEntity>
An enumerator that can be used to iterate through this entity set.

Implements

IEnumerable<T>.GetEnumerator()

Remarks

This member is an explicit interface member implementation. It can be used only when the EntitySet<TEntity> instance is cast to an IEnumerable interface.

See Also

Reference

EntitySet<TEntity> Class

System.ServiceModel.DomainServices.Client Namespace