XmlSerializationWriter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an abstract class used for controlling serialization by the XmlSerializer class.
This API supports the product infrastructure and is not intended to be used directly from your code.
public ref class XmlSerializationWriter abstract : System::Xml::Serialization::XmlSerializationGeneratedCode
public ref class XmlSerializationWriter abstract
public abstract class XmlSerializationWriter : System.Xml.Serialization.XmlSerializationGeneratedCode
public abstract class XmlSerializationWriter
type XmlSerializationWriter = class
inherit XmlSerializationGeneratedCode
type XmlSerializationWriter = class
Public MustInherit Class XmlSerializationWriter
Inherits XmlSerializationGeneratedCode
Public MustInherit Class XmlSerializationWriter
- Inheritance
- Inheritance
-
XmlSerializationWriter
Remarks
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.
Constructors
XmlSerializationWriter() |
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. |
Properties
EscapeName |
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(String) method is used to write valid XML. |
Namespaces |
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. |
Writer |
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. |
Methods
AddWriteCallback(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. |
CreateChoiceIdentifierValueException(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 |
CreateInvalidAnyTypeException(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. |
CreateInvalidAnyTypeException(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. |
CreateInvalidChoiceIdentifierValueException(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 |
CreateInvalidEnumValueException(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. |
CreateMismatchChoiceException(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. |
CreateUnknownAnyElementException(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 |
CreateUnknownTypeException(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. |
CreateUnknownTypeException(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. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
FromByteArrayBase64(Byte[]) |
This API supports the product infrastructure and is not intended to be used directly from your code. Processes a base-64 byte array. |
FromByteArrayHex(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. |
FromChar(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. |
FromDate(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. |
FromDateTime(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. |
FromEnum(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. |
FromEnum(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. |
FromTime(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. |
FromXmlName(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. |
FromXmlNCName(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. |
FromXmlNmToken(String) |
This API supports the product infrastructure and is not intended to be used directly from your code. Encodes an XML name. |
FromXmlNmTokens(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. |
FromXmlQualifiedName(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. |
FromXmlQualifiedName(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. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
InitCallbacks() |
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. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ResolveDynamicAssembly(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. |
TopLevelElement() |
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. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
WriteAttribute(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. |
WriteAttribute(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. |
WriteAttribute(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. |
WriteAttribute(String, String, String) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML attribute. |
WriteAttribute(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. |
WriteElementEncoded(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. |
WriteElementLiteral(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. |
WriteElementQualifiedName(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. |
WriteElementQualifiedName(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. |
WriteElementQualifiedName(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. |
WriteElementQualifiedName(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. |
WriteElementString(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. |
WriteElementString(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. |
WriteElementString(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. |
WriteElementString(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. |
WriteElementStringRaw(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. |
WriteElementStringRaw(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. |
WriteElementStringRaw(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. |
WriteElementStringRaw(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. |
WriteElementStringRaw(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. |
WriteElementStringRaw(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. |
WriteElementStringRaw(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. |
WriteElementStringRaw(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. |
WriteEmptyTag(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. |
WriteEmptyTag(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. |
WriteEndElement() |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes a |
WriteEndElement(Object) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes a |
WriteId(Object) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes an |
WriteNamespaceDeclarations(XmlSerializerNamespaces) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes the namespace declaration attributes. |
WriteNullableQualifiedNameEncoded(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 |
WriteNullableQualifiedNameLiteral(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 |
WriteNullableStringEncoded(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 |
WriteNullableStringEncodedRaw(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 |
WriteNullableStringEncodedRaw(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 |
WriteNullableStringLiteral(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 |
WriteNullableStringLiteralRaw(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 |
WriteNullableStringLiteralRaw(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 |
WriteNullTagEncoded(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 |
WriteNullTagEncoded(String) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with an |
WriteNullTagLiteral(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 |
WriteNullTagLiteral(String) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes an XML element with an |
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 |
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 |
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 |
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 |
WriteReferencedElements() |
This API supports the product infrastructure and is not intended to be used directly from your code. Serializes objects into SOAP-encoded |
WriteReferencingElement(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 |
WriteReferencingElement(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 |
WriteRpcResult(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. |
WriteSerializable(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. |
WriteSerializable(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. |
WriteStartDocument() |
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. |
WriteStartElement(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. |
WriteStartElement(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. |
WriteStartElement(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. |
WriteStartElement(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. |
WriteStartElement(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. |
WriteStartElement(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. |
WriteTypedPrimitive(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. |
WriteValue(Byte[]) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes a base-64 byte array. |
WriteValue(String) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes a specified string value. |
WriteXmlAttribute(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. |
WriteXmlAttribute(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. |
WriteXsiType(String, String) |
This API supports the product infrastructure and is not intended to be used directly from your code. Writes an |