Share via


DataServiceContext.Entities Property

Gets a list of all the resources currently being tracked by the DataServiceContext.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public ReadOnly Property Entities As ReadOnlyCollection(Of EntityDescriptor)
    Get
'Usage
Dim instance As DataServiceContext 
Dim value As ReadOnlyCollection(Of EntityDescriptor)

value = instance.Entities
public ReadOnlyCollection<EntityDescriptor> Entities { get; }
public:
property ReadOnlyCollection<EntityDescriptor^>^ Entities {
    ReadOnlyCollection<EntityDescriptor^>^ get ();
}
member Entities : ReadOnlyCollection<EntityDescriptor>
function get Entities () : ReadOnlyCollection<EntityDescriptor>

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<EntityDescriptor>
A list of EntityDescriptor objects that represent all the resources currently being tracked by the DataServiceContext.

Remarks

If no resources are being tracked, a list that has zero elements is returned.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace