DataServiceContext Constructor (Uri, DataServiceProtocolVersion)

Initializes a new instance of the DataServiceContext class with the specified serviceRoot and targeting the specific maxProtocolVersion.

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

public DataServiceContext(
	Uri serviceRoot,
	DataServiceProtocolVersion maxProtocolVersion
)

Parameters

serviceRoot
Type: System.Uri
An absolute URI that identifies the root of a data service.
maxProtocolVersion
Type: System.Data.Services.Common.DataServiceProtocolVersion
A DataServiceProtocolVersion value that is the maximum protocol version that the client understands.
Show: