System.Xml [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 To be added System.Attribute System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.All)

The class belongs to a family of attributes that controls how the serializes or deserializes an object as encoded SOAP XML. The resulting XML conforms to section 5 of the World Wide Web Consortium (www.w3.org) document, "Simple Object Access Protocol (SOAP) 1.1". For a complete list of similar attributes, see [<topic://cpconAttributesThatControlSOAPEncodedSerialization>].

To serialize an object as an encoded SOAP message, construct the using an created with the method of the class.

The can only be applied to class declarations.

The property determines whether the resulting XML element type is included in the XML Schema document (.xsd) for the generated XML stream. To see the schema, compile the class into a DLL file. Pass the resulting file as an argument to the [<topic://cpconXMLSchemaDefinitionToolXsdexe>]. The tool generates the XML Schema for the XML stream generated when the class is serialized by an instance of the class.

Setting a different namespace causes Xsd.exe to write a different schema (.xsd) file for the XML stream generated when the class is serialized.

Controls the schema generated by the when a class instance is serialized as SOAP encoded XML.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  Create a when overriding the serialization of a type. Assign the object to the property of a and add the to a . See the class overview for more details about overriding SOAP serialization.

  Initializes a new instance of the class.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  Create a when overriding the serialization of a type. Assign the object to the property of a and add the to a . See the class overview for more details about overriding SOAP serialization.

  Initializes a new instance of the class and specifies the name of the XML type.

  The name of the XML type that the generates when it serializes the class instance (and recognizes when it deserializes the class instance).
- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  Create a when overriding the serialization of a type. Assign the object to the property of a and add the to a . See the class overview for more details on overriding SOAP serialization.

  If you set a value for more than one type (that is, if you apply the attribute to more than one class with a different value for each one), the [<topic://cpconXMLSchemaDefinitionToolXsdexe>] generates a separate schema file (.xsd) for each type. This is because setting a different namespace for each type renders each type distinct from the others, which makes it necessary for each type to be written out as an independent entity.

  Initializes a new instance of the class and specifies the name and XML namespace of the type.

  The name of the XML type that the generates when it serializes the class instance (and recognizes when it deserializes the class instance).
  The XML namespace of the type.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added: an object of type 'bool'

  Apply the to a class declaration to specify whether to include the type in the XML schema document. To see the results of setting the properties of the class, compile your application as an executable or DLL, and pass the resulting file to the [<topic://cpconXMLSchemaDefinitionToolXsdexe>]. The tool writes the schema, including the type definition of the XML stream generated when the class is serialized.

  Gets or sets a value that indicates whether to include the type in SOAP-encoded XML Schema documents.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  If you set a value for more than one type (that is, if you apply the attribute to more than one class with a different value for each one), the [<topic://cpconXMLSchemaDefinitionToolXsdexe>] generates a separate schema file (.xsd) for each type. This is because setting a different namespace for each type renders each type distinct from the others, which makes it necessary for each type to be written out as an independent entity.

  Gets or sets the namespace of the XML type.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  Apply the to a class to specify the XML type's namespace, the XML type name, and whether to include the type in the XML Schema document. To see the results of setting the object's properties, compile your application as an executable or DLL, and pass the resulting file to the [<topic://cpconXMLSchemaDefinitionToolXsdexe>]. The tool writes the schema, including the type definition.

  Gets or sets the name of the XML type.