XmlMapping 类

定义

支持 .NET Framework 类型和 XML 架构数据类型之间的映射。Supports mappings between .NET Framework types and XML Schema data types.

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

public ref class XmlMapping abstract
public abstract class XmlMapping
type XmlMapping = class
Public MustInherit Class XmlMapping
继承
XmlMapping
派生

注解

XmlMappingXmlTypeMappingXmlMembersMapping 类的基类。XmlMapping is the base class for the XmlTypeMapping and XmlMembersMapping classes. 它支持内置和自定义的 XML 架构数据类型,以及 SOAP 编码(SOAP 1.1 规范的第5部分)。It supports built-in and custom XML schema data types, plus SOAP encoding (Section 5 of the SOAP 1.1 specification). 使用 XmlTypeMappingXmlMemberMapping 类,而不是直接从 XmlMapping派生类。Use the XmlTypeMapping or XmlMemberMapping class instead of deriving a class directly from XmlMapping.

属性

ElementName

获取被映射元素的名称。Gets the name of the mapped element.

Namespace

获取被映射元素的命名空间。Gets the namespace of the mapped element.

XsdElementName

获取映射的 XSD 元素的名称。Gets the name of the XSD element of the mapping.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
SetKey(String)

设置用于查找映射的键。Sets the key used to look up the mapping.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅