Compartilhar via


EntitySet<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
Public Function GetEnumerator As IEnumerator(Of TEntity)
'Usage
Dim instance As EntitySet
Dim returnValue As IEnumerator(Of TEntity)

returnValue = instance.GetEnumerator()
public IEnumerator<TEntity> GetEnumerator()
public:
IEnumerator<TEntity>^ GetEnumerator()
member GetEnumerator : unit -> IEnumerator<'TEntity> 
public function GetEnumerator() : IEnumerator<TEntity>

Return Value

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

See Also

Reference

EntitySet<TEntity> Class

System.ServiceModel.DomainServices.Client Namespace