XmlSerializationWriter.WriteId(Object) 方法

定义

写入一个在 SOAP 编码的 id 元素中出现的 multiRef 特性。Writes an id attribute that appears in a SOAP-encoded multiRef element.

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

protected:
 void WriteId(System::Object ^ o);
protected void WriteId (object o);
member this.WriteId : obj -> unit
Protected Sub WriteId (o As Object)

参数

o
Object

将序列化的对象。The object being serialized.

注解

的受保护成员 XmlSerializationWriter 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

SOAP 编码允许唯一 XML 元素在 SOAP 消息内作为 multiRef 由特性标识的元素出现一次 idSOAP encoding allows a unique XML element to appear once within a SOAP message as a multiRef element identified by an id attribute. id可以通过属性 (中的属性多次引用该值, hrefref 在替代元素中) SOAP 1.2 中的属性。The id value can be referenced multiple times by href attributes (or ref attributes in SOAP 1.2) in substitute elements.

Soap 编码在 SOAP 1.1 规范的第5节中进行了介绍。SOAP encoding is described in Section 5 of the SOAP 1.1 specification.

适用于