Udostępnij za pośrednictwem


DataServiceContext.DataNamespace Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Property DataNamespace As String
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.

Remarks

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

This property affects both the namespace used for parsing content from the data service as well as the namespace used to generate content sent to the data service.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.