The DataServiceContext represents the runtime context of an ADO.NET data service. ADO.NET Data Services are stateless, but the DataServiceContext is not. State on the client is maintained between interactions in order to support features such as update management. This class, and the DataServiceQuery class that represents a particular HTTP request to a data service, are the two main classes in the client library.
Namespace:
System.Data.Services.Client
Assembly:
System.Data.Services.Client (in System.Data.Services.Client.dll)
Visual Basic (Declaration)
Public Class DataServiceContext
Dim instance As DataServiceContext
public class DataServiceContext
public ref class DataServiceContext
public class DataServiceContext
For more information about DataServiceContext and DataServiceQuery<(Of <(TElement>)>), see .NET Client Library (ADO.NET Data Services) in the ADO.NET Data Services documentation.
System..::.Object
System.Data.Services.Client..::.DataServiceContext
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5 SP1
Reference