Specifies the CLR namespace and XML namespace of the data contract.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Apply the attribute to an assembly that contains types to which the DataContractAttribute has been applied. The enables you to set a namespace that is different than the one generated when the type is serialized. For more information about how names are generated, see Data Contract Names.
In any code, you can use the word ContractNamespace instead of the longer .
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.