共用方式為


XmlMappingAccess Enumeration

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

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml.Serialization (in System.Xml.Serialization.dll)

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration XmlMappingAccess
[FlagsAttribute]
public enum XmlMappingAccess

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 None Both read and write methods are generated.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Read Read methods are generated.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Write Write methods are generated.

Remarks

This enumeration is used by the 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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

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