XmlMappingAccess 枚举

定义

指定映射是读取、写入,还是既读取又写入。Specifies whether a mapping is read, write, or both.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

此 API 支持产品基础结构,不能在代码中直接使用。

public enum class XmlMappingAccess
[System.Flags]
public enum XmlMappingAccess
type XmlMappingAccess = 
Public Enum XmlMappingAccess
继承
XmlMappingAccess
属性

字段

None 0

生成读取方法和写入方法。Both read and write methods are generated.

Read 1

生成读取方法。Read methods are generated.

Write 2

生成写入方法。Write methods are generated.

注解

在为序列化和反ImportMembersMapping序列化方法生成代码时, 将使用此枚举。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.

适用于