System.Xml.Serialization.XmlMappingAccess Enumeration

Specifies whether a mapping is read, write, or both.

Syntax

[System.Flags]
public enum XmlMappingAccess

Remarks

This enumeration is used by the erload:System.Xml.Serialization.XmlSchemaImporter.ImportMembersMapping when generating code for serialization and deserialization methods. The value specifies whether the schema importer generates write methods for mappings with write access, and read methods for mappings with read access. This minimizes the generation of serialization code.

Members

Member NameDescription
None

Both read and write methods are generated.

Read

Read methods are generated.

Write

Write methods are generated.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0