XmlSerializationWriter Class
TOC
Collapse the table of content
Expand the table of content

XmlSerializationWriter Class

 
Use BaseTrue

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

Represents an abstract class used for controlling serialization by the XmlSerializer class.

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

System.Object
  System.Xml.Serialization.XmlSerializationGeneratedCode
    System.Xml.Serialization.XmlSerializationWriter

public abstract class XmlSerializationWriter : XmlSerializationGeneratedCode

NameDescription
System_CAPS_protmethodXmlSerializationWriter()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the XmlSerializationWriter class.

NameDescription
System_CAPS_protpropertyEscapeName

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a value that indicates whether the EncodeName method is used to write valid XML.

System_CAPS_protpropertyNamespaces

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets a list of XML qualified name objects that contain the namespaces and prefixes used to produce qualified names in XML documents.

System_CAPS_protpropertyWriter

This API supports the product infrastructure and is not intended to be used directly from your code. Gets or sets the XmlWriter that is being used by the XmlSerializationWriter.

NameDescription
System_CAPS_protmethodAddWriteCallback(Type, String, String, XmlSerializationWriteCallback)

This API supports the product infrastructure and is not intended to be used directly from your code. Stores an implementation of the XmlSerializationWriteCallback delegate and the type it applies to, for a later invocation.

System_CAPS_protmethodCreateChoiceIdentifierValueException(String, String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException that indicates an unexpected name for an element that adheres to an XML Schema choice element declaration.

System_CAPS_protmethodCreateInvalidAnyTypeException(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException that indicates the XmlAnyElementAttribute which has been invalidly applied to a member; only members that are of type XmlNode, or derived from XmlNode, are valid.

System_CAPS_protmethodCreateInvalidAnyTypeException(Type)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException that indicates the XmlAnyElementAttribute which has been invalidly applied to a member; only members that are of type XmlNode, or derived from XmlNode, are valid.

System_CAPS_protmethodCreateInvalidChoiceIdentifierValueException(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException that indicates a failure while writing an array where an XML Schema choice element declaration is applied.

System_CAPS_protmethodCreateInvalidEnumValueException(Object, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException for an invalid enumeration value.

System_CAPS_protmethodCreateMismatchChoiceException(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException that indicates that a value for an XML element does not match an enumeration type.

System_CAPS_protmethodCreateUnknownAnyElementException(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException that indicates that an XML element that should adhere to the XML Schema any element declaration cannot be processed.

System_CAPS_protmethodCreateUnknownTypeException(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException that indicates that a type being serialized is not being used in a valid manner or is unexpectedly encountered.

System_CAPS_protmethodCreateUnknownTypeException(Type)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an InvalidOperationException that indicates that a type being serialized is not being used in a valid manner or is unexpectedly encountered.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_protmethodSystem_CAPS_staticFromByteArrayBase64(Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code. Processes a base-64 byte array.

System_CAPS_protmethodSystem_CAPS_staticFromByteArrayHex(Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code. Produces a string from an input hexadecimal byte array.

System_CAPS_protmethodSystem_CAPS_staticFromChar(Char)

This API supports the product infrastructure and is not intended to be used directly from your code. Produces a string from an input Char.

System_CAPS_protmethodSystem_CAPS_staticFromDate(DateTime)

This API supports the product infrastructure and is not intended to be used directly from your code. Produces a string from a DateTime object.

System_CAPS_protmethodSystem_CAPS_staticFromDateTime(DateTime)

This API supports the product infrastructure and is not intended to be used directly from your code. Produces a string from an input DateTime.

System_CAPS_protmethodSystem_CAPS_staticFromEnum(Int64, String[], Int64[])

This API supports the product infrastructure and is not intended to be used directly from your code. Produces a string that consists of delimited identifiers that represent the enumeration members that have been set.

System_CAPS_protmethodSystem_CAPS_staticFromEnum(Int64, String[], Int64[], String)

This API supports the product infrastructure and is not intended to be used directly from your code. Takes a numeric enumeration value and the names and constants from the enumerator list for the enumeration and returns a string that consists of delimited identifiers that represent the enumeration members that have been set.

System_CAPS_protmethodSystem_CAPS_staticFromTime(DateTime)

This API supports the product infrastructure and is not intended to be used directly from your code. Produces a string from a DateTime object.

System_CAPS_protmethodSystem_CAPS_staticFromXmlName(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Encodes a valid XML name by replacing characters that are not valid with escape sequences.

System_CAPS_protmethodSystem_CAPS_staticFromXmlNCName(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Encodes a valid XML local name by replacing characters that are not valid with escape sequences.

System_CAPS_protmethodSystem_CAPS_staticFromXmlNmToken(String)

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

System_CAPS_protmethodSystem_CAPS_staticFromXmlNmTokens(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Encodes a space-delimited sequence of XML names into a single XML name.

System_CAPS_protmethodFromXmlQualifiedName(XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns an XML qualified name, with invalid characters replaced by escape sequences.

System_CAPS_protmethodFromXmlQualifiedName(XmlQualifiedName, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Produces a string that can be written as an XML qualified name, with invalid characters replaced by escape sequences.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodInitCallbacks()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes an instances of the XmlSerializationWriteCallback delegate to serialize SOAP-encoded XML data.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodSystem_CAPS_staticResolveDynamicAssembly(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets a dynamically generated assembly by name.

System_CAPS_protmethodTopLevelElement()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes object references only while serializing a SOAP-encoded SOAP message.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodWriteAttribute(String, Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code. Instructs an XmlWriter object to write an XML attribute that has no namespace specified for its name.

System_CAPS_protmethodWriteAttribute(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Instructs the XmlWriter to write an XML attribute that has no namespace specified for its name.

System_CAPS_protmethodWriteAttribute(String, String, Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code. Instructs an XmlWriter object to write an XML attribute.

System_CAPS_protmethodWriteAttribute(String, String, String)

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

System_CAPS_protmethodWriteAttribute(String, String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML attribute where the namespace prefix is provided manually.

System_CAPS_protmethodWriteElementEncoded(XmlNode, String, String, Boolean, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML node object within the body of a named XML element.

System_CAPS_protmethodWriteElementLiteral(XmlNode, String, String, Boolean, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Instructs an XmlWriter object to write an XmlNode object within the body of a named XML element.

System_CAPS_protmethodWriteElementQualifiedName(String, String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified qualified name in its body.

System_CAPS_protmethodWriteElementQualifiedName(String, String, XmlQualifiedName, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified qualified name in its body.

System_CAPS_protmethodWriteElementQualifiedName(String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified qualified name in its body.

System_CAPS_protmethodWriteElementQualifiedName(String, XmlQualifiedName, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified qualified name in its body.

System_CAPS_protmethodWriteElementString(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementString(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementString(String, String, String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementString(String, String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementStringRaw(String, Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementStringRaw(String, Byte[], XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementStringRaw(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementStringRaw(String, String, Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementStringRaw(String, String, Byte[], XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementStringRaw(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementStringRaw(String, String, String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteElementStringRaw(String, String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with a specified value in its body.

System_CAPS_protmethodWriteEmptyTag(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element whose body is empty.

System_CAPS_protmethodWriteEmptyTag(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element whose body is empty.

System_CAPS_protmethodWriteEndElement()

This API supports the product infrastructure and is not intended to be used directly from your code. Writes a <closing> element tag.

System_CAPS_protmethodWriteEndElement(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes a <closing> element tag.

System_CAPS_protmethodWriteId(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an id attribute that appears in a SOAP-encoded multiRef element.

System_CAPS_protmethodWriteNamespaceDeclarations(XmlSerializerNamespaces)

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

System_CAPS_protmethodWriteNullableQualifiedNameEncoded(String, String, XmlQualifiedName, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element whose body contains a valid XML qualified name. XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

System_CAPS_protmethodWriteNullableQualifiedNameLiteral(String, String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element whose body contains a valid XML qualified name. XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

System_CAPS_protmethodWriteNullableStringEncoded(String, String, String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element that contains a string as the body. XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

System_CAPS_protmethodWriteNullableStringEncodedRaw(String, String, Byte[], XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes a byte array as the body of an XML element. XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

System_CAPS_protmethodWriteNullableStringEncodedRaw(String, String, String, XmlQualifiedName)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element that contains a string as the body. XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

System_CAPS_protmethodWriteNullableStringLiteral(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element that contains a string as the body. XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

System_CAPS_protmethodWriteNullableStringLiteralRaw(String, String, Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code. Writes a byte array as the body of an XML element. XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

System_CAPS_protmethodWriteNullableStringLiteralRaw(String, String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element that contains a string as the body. XmlWriter inserts a xsi:nil='true' attribute if the string's value is null.

System_CAPS_protmethodWriteNullTagEncoded(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with an xsi:nil='true' attribute.

System_CAPS_protmethodWriteNullTagEncoded(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with an xsi:nil='true' attribute.

System_CAPS_protmethodWriteNullTagLiteral(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with an xsi:nil='true' attribute.

System_CAPS_protmethodWriteNullTagLiteral(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with an xsi:nil='true' attribute.

System_CAPS_protmethodWritePotentiallyReferencingElement(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.

System_CAPS_protmethodWritePotentiallyReferencingElement(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.

System_CAPS_protmethodWritePotentiallyReferencingElement(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.

System_CAPS_protmethodWritePotentiallyReferencingElement(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.

System_CAPS_protmethodWriteReferencedElements()

This API supports the product infrastructure and is not intended to be used directly from your code. Serializes objects into SOAP-encoded multiRef XML elements in a SOAP message.

System_CAPS_protmethodWriteReferencingElement(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 contains a reference to a multiRef element for a given object.

System_CAPS_protmethodWriteReferencingElement(String, String, Object, 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 contains a reference to a multiRef element for a given object.

System_CAPS_protmethodWriteRpcResult(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes a SOAP 1.2 RPC result element with a specified qualified name in its body.

System_CAPS_protmethodWriteSerializable(IXmlSerializable, String, String, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an object that uses custom XML formatting as an XML element.

System_CAPS_protmethodWriteSerializable(IXmlSerializable, String, String, Boolean, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Instructs XmlNode to write an object that uses custom XML formatting as an XML element.

System_CAPS_protmethodWriteStartDocument()

This API supports the product infrastructure and is not intended to be used directly from your code. Writes the XML declaration if the writer is positioned at the start of an XML document.

System_CAPS_protmethodWriteStartElement(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an opening element tag, including any attributes.

System_CAPS_protmethodWriteStartElement(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an opening element tag, including any attributes.

System_CAPS_protmethodWriteStartElement(String, String, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an opening element tag, including any attributes.

System_CAPS_protmethodWriteStartElement(String, String, Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an opening element tag, including any attributes.

System_CAPS_protmethodWriteStartElement(String, String, Object, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an opening element tag, including any attributes.

System_CAPS_protmethodWriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an opening element tag, including any attributes.

System_CAPS_protmethodWriteTypedPrimitive(String, String, Object, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element whose text body is a value of a simple XML Schema data type.

System_CAPS_protmethodWriteValue(Byte[])

This API supports the product infrastructure and is not intended to be used directly from your code. Writes a base-64 byte array.

System_CAPS_protmethodWriteValue(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes a specified string value.

System_CAPS_protmethodWriteXmlAttribute(XmlNode)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes the specified XmlNode as an XML attribute.

System_CAPS_protmethodWriteXmlAttribute(XmlNode, Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes the specified XmlNode object as an XML attribute.

System_CAPS_protmethodWriteXsiType(String, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes an xsi:type attribute for an XML element that is being serialized into a document.

During initialization, the .NET Framework XML serialization infrastructure dynamically generates and compiles a temporary class for serialization that is derived from the abstract XmlSerializationWriter class. XmlSerializationWriter is also implemented within the .NET Framework for serialization of DiscoveryDocument and ServiceDescription objects into XML documents.

You should not derive classes from XmlSerializationWriter. Instead, call the Serialize method.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft