EntityCollection<TEntity>.Count Property
[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.]
Gets the current count of entities in this collection.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Public ReadOnly Property Count As Integer
Get
'Usage
Dim instance As EntityCollection
Dim value As Integer
value = instance.Count
public int Count { get; }
public:
property int Count {
int get ();
}
member Count : int
function get Count () : int
Property Value
Type: System.Int32
An integer that represents the current count of entities in this collection.
Examples
Public Property Employee1_EntityAdded As EventHandler(Of EntityCollectionChangedEventArgs(Of Employee))
Set(ByVal value As EventHandler(Of EntityCollectionChangedEventArgs(Of Employee)))
Me._count = Me.Employee1.Count
End Set
End Property
EventHandler<EntityCollectionChangedEventArgs<Employee>> Employee1_EntityAdded
{
set
{
this._count = this.Employee1.Count;
}
}