SALES: 1-800-867-1380
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataServiceContext.DataNamespace Property

Note: This API is now obsolete.

Gets or sets the XML namespace for data items, not metadata items, of an Atom payload.

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

[ObsoleteAttribute("You cannot change the default data namespace for an OData service that supports version 3 of the OData protocol, or a later version.", 
	false)]
public string DataNamespace { get; set; }

Property Value

Type: System.String
A string representing the XML namespace for data items of a payload in the ATOM format.

The default value of this property is the default WCF Data Services namespace: http://schemas.microsoft.com/ado/2007/08/dataservices.

This property affects both the namespace that is used for parsing content from the data service and the namespace used to generate content sent to the data service.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft