DataServiceContext.DataNamespace Property


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

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

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:

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.

.NET Framework
Available since 3.5
Available since 2.0
Return to top