XmlSerializationWriter.WriteReferencingElement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
撰寫一個 SOAP 訊息 XML 元素,其中包含對 multiRef 特定物件元素的參考。
多載
| 名稱 | Description |
|---|---|
| WriteReferencingElement(String, String, Object) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 撰寫一個 SOAP 訊息 XML 元素,其中包含對 |
| WriteReferencingElement(String, String, Object, Boolean) |
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 撰寫一個 SOAP 訊息 XML 元素,其中包含對 |
WriteReferencingElement(String, String, Object)
撰寫一個 SOAP 訊息 XML 元素,其中包含對 multiRef 特定物件元素的參考。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
protected:
void WriteReferencingElement(System::String ^ n, System::String ^ ns, System::Object ^ o);
protected void WriteReferencingElement(string n, string? ns, object? o);
protected void WriteReferencingElement(string n, string ns, object o);
member this.WriteReferencingElement : string * string * obj -> unit
Protected Sub WriteReferencingElement (n As String, ns As String, o As Object)
參數
- n
- String
書寫的參考元素在地名稱。
- ns
- String
被寫入的參考元素命名空間。
- o
- Object
被序列化的物件。
備註
XmlSerializationWriter 的受保護成員僅供內部在 .NET Framework XML 序列化基礎架構中使用的衍生類別使用。
SOAP 編碼允許在 SOAP 訊息中出現一次獨特的 XML 元素,作為 multiRef 屬性 id 識別的元素。
id該值可多次使用href屬性(或 ref SOAP 1.2 中的屬性)在替換元素中引用。
SOAP 編碼在 SOAP 1.1 規範的第 5 節中有描述。
適用於
WriteReferencingElement(String, String, Object, Boolean)
撰寫一個 SOAP 訊息 XML 元素,其中包含對 multiRef 特定物件元素的參考。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
protected:
void WriteReferencingElement(System::String ^ n, System::String ^ ns, System::Object ^ o, bool isNullable);
protected void WriteReferencingElement(string n, string? ns, object? o, bool isNullable);
protected void WriteReferencingElement(string n, string ns, object o, bool isNullable);
member this.WriteReferencingElement : string * string * obj * bool -> unit
Protected Sub WriteReferencingElement (n As String, ns As String, o As Object, isNullable As Boolean)
參數
- n
- String
書寫的參考元素在地名稱。
- ns
- String
被寫入的參考元素命名空間。
- o
- Object
被序列化的物件。
- isNullable
- Boolean
true 若要序列 xsi:nil='true' 化的物件為 null;,則 false。
備註
XmlSerializationWriter 的受保護成員僅供內部在 .NET Framework XML 序列化基礎架構中使用的衍生類別使用。
SOAP 編碼允許在 SOAP 訊息中出現一次獨特的 XML 元素,作為 multiRef 屬性 id 識別的元素。
id該值可多次使用href屬性(或 ref SOAP 1.2 中的屬性)在替換元素中引用。
SOAP 編碼在 SOAP 1.1 規範的第 5 節中有描述。