System.Runtime.Serialization 4.0.0.0 System.Attribute System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Module | System.AttributeTargets.All, AllowMultiple=true, Inherited=false)

Apply the attribute to an assembly that contains types to which the 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.

If you are using a type to conform to an existing data contract, you must match the namespace of the existing contract by using the (or the property of the class).

In any code, you can use the word ContractNamespace instead of the longer .

Specifies the CLR namespace and XML namespace of the data contract.

- Constructor
  4.0.0.0
  To be added.
  To be added.

  Initializes a new instance of the class using the supplied namespace.

- Property
  4.0.0.0
  System.String To be added. To be added.

  Gets or sets the CLR namespace of the data contract type.

- Property
  4.0.0.0
  System.String To be added.

  This property can only be set using the constructor when applying the attribute to an assembly.

  Gets the namespace of the data contract members.