.NET Framework Class Library
DataServiceContext Class

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)
Syntax

Visual Basic (Declaration)
Public Class DataServiceContext
Visual Basic (Usage)
Dim instance As DataServiceContext
C#
public class DataServiceContext
Visual C++
public ref class DataServiceContext
JScript
public class DataServiceContext
Remarks

For more information about DataServiceContext and DataServiceQuery<(Of <(TElement>)>), see .NET Client Library (ADO.NET Data Services) in the ADO.NET Data Services documentation.

Inheritance Hierarchy

System..::.Object
  System.Data.Services.Client..::.DataServiceContext
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

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.
Version Information

.NET Framework

Supported in: 3.5 SP1
See Also

Reference

Tags :


Page view tracker