Επεξεργασία

Κοινή χρήση μέσω


XmlSerializationWriter.WritePotentiallyReferencingElement Method

Definition

Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

Overloads

WritePotentiallyReferencingElement(String, String, Object, Type, Boolean, Boolean)

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

Writes a SOAP message XML element that can contain a reference to a multiRef XML element for a given object.

WritePotentiallyReferencingElement(String, String, Object, Type, Boolean)

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

Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

WritePotentiallyReferencingElement(String, String, Object, Type)

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

Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

WritePotentiallyReferencingElement(String, String, Object)

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

Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

WritePotentiallyReferencingElement(String, String, Object, Type, Boolean, Boolean)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes a SOAP message XML element that can contain a reference to a multiRef XML element for a given object.

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

protected:
 void WritePotentiallyReferencingElement(System::String ^ n, System::String ^ ns, System::Object ^ o, Type ^ ambientType, bool suppressReference, bool isNullable);
protected void WritePotentiallyReferencingElement (string? n, string? ns, object? o, Type? ambientType, bool suppressReference, bool isNullable);
protected void WritePotentiallyReferencingElement (string n, string ns, object o, Type ambientType, bool suppressReference, bool isNullable);
member this.WritePotentiallyReferencingElement : string * string * obj * Type * bool * bool -> unit
Protected Sub WritePotentiallyReferencingElement (n As String, ns As String, o As Object, ambientType As Type, suppressReference As Boolean, isNullable As Boolean)

Parameters

n
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

o
Object

The object being serialized either in the current XML element or a multiRef element that referenced by the current element.

ambientType
Type

The type stored in the object's type mapping (as opposed to the object's type found directly through the typeof operation).

suppressReference
Boolean

true to serialize the object directly into the XML element rather than make the element reference another element that contains the data; otherwise, false.

isNullable
Boolean

true to write an xsi:nil='true' attribute if the object to serialize is null; otherwise, false.

Remarks

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 encoding allows a unique XML element to appear once within a SOAP message as a multiRef element identified by an id attribute. The id value can be referenced multiple times using href attributes (or ref attributes in SOAP 1.2) in substitute elements.

SOAP encoding is described in Section 5 of the SOAP 1.1 specification.

Applies to

WritePotentiallyReferencingElement(String, String, Object, Type, Boolean)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

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

protected:
 void WritePotentiallyReferencingElement(System::String ^ n, System::String ^ ns, System::Object ^ o, Type ^ ambientType, bool suppressReference);
protected void WritePotentiallyReferencingElement (string n, string? ns, object? o, Type? ambientType, bool suppressReference);
protected void WritePotentiallyReferencingElement (string n, string ns, object o, Type ambientType, bool suppressReference);
member this.WritePotentiallyReferencingElement : string * string * obj * Type * bool -> unit
Protected Sub WritePotentiallyReferencingElement (n As String, ns As String, o As Object, ambientType As Type, suppressReference As Boolean)

Parameters

n
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

o
Object

The object being serialized either in the current XML element or a multiRef element that is referenced by the current element.

ambientType
Type

The type stored in the object's type mapping (as opposed to the object's type found directly through the typeof operation).

suppressReference
Boolean

true to serialize the object directly into the XML element rather than make the element reference another element that contains the data; otherwise, false.

Remarks

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 encoding allows a unique XML element to appear once within a SOAP message as a multiRef element identified by an id attribute. The id value can be referenced multiple times using href attributes (or ref attributes in SOAP 1.2) in substitute elements.

SOAP encoding is described in Section 5 of the SOAP 1.1 specification.

Applies to

WritePotentiallyReferencingElement(String, String, Object, Type)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

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

protected:
 void WritePotentiallyReferencingElement(System::String ^ n, System::String ^ ns, System::Object ^ o, Type ^ ambientType);
protected void WritePotentiallyReferencingElement (string? n, string? ns, object? o, Type? ambientType);
protected void WritePotentiallyReferencingElement (string n, string ns, object o, Type ambientType);
member this.WritePotentiallyReferencingElement : string * string * obj * Type -> unit
Protected Sub WritePotentiallyReferencingElement (n As String, ns As String, o As Object, ambientType As Type)

Parameters

n
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

o
Object

The object being serialized either in the current XML element or a multiRef element that referenced by the current element.

ambientType
Type

The type stored in the object's type mapping (as opposed to the object's type found directly through the typeof operation).

Remarks

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 encoding allows a unique XML element to appear once within a SOAP message as a <multiRef> element identified by an id attribute. The id value can be referenced multiple times using href attributes (or ref attributes in SOAP 1.2) in substitute elements.

SOAP encoding is described in Section 5 of the SOAP 1.1 specification.

Applies to

WritePotentiallyReferencingElement(String, String, Object)

Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs
Source:
XmlSerializationWriter.cs

Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

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

protected:
 void WritePotentiallyReferencingElement(System::String ^ n, System::String ^ ns, System::Object ^ o);
protected void WritePotentiallyReferencingElement (string? n, string? ns, object? o);
protected void WritePotentiallyReferencingElement (string n, string ns, object o);
member this.WritePotentiallyReferencingElement : string * string * obj -> unit
Protected Sub WritePotentiallyReferencingElement (n As String, ns As String, o As Object)

Parameters

n
String

The local name of the XML element to write.

ns
String

The namespace of the XML element to write.

o
Object

The object being serialized either in the current XML element or a multiRef element that is referenced by the current element.

Remarks

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 encoding allows a unique XML element to appear once within a SOAP message as a <multiRef> element identified by an id attribute. The id value can be referenced multiple times using href attributes (or ref attributes in SOAP 1.2) in substitute elements.

SOAP encoding is described in Section 5 of the SOAP 1.1 specification.

Applies to