XmlDictionaryWriter Class
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 that Windows Communication Foundation (WCF) derives from XmlWriter to do serialization and deserialization.
public ref class XmlDictionaryWriter abstract : System::Xml::XmlWriter
public abstract class XmlDictionaryWriter : System.Xml.XmlWriter
type XmlDictionaryWriter = class
inherit XmlWriter
Public MustInherit Class XmlDictionaryWriter
Inherits XmlWriter
- Inheritance
- Derived
You can derive from this class to do other functions than serialization.
Note that there is a known issue with the normalization of linefeed characters inside of CDATA sections that you may encounter.
Xml |
Initializes a new instance of the XmlDictionaryWriter class. |
Can |
This property always returns |
Settings |
Gets the XmlWriterSettings object used to create this XmlWriter instance. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, gets the state of the writer. (Inherited from XmlWriter) |
Xml |
When overridden in a derived class, gets the current |
Xml |
When overridden in a derived class, gets an XmlSpace representing the current |
Close() |
When overridden in a derived class, closes this stream and the underlying stream. (Inherited from XmlWriter) |
Create |
Creates an instance of XmlDictionaryWriter that writes WCF binary XML format. |
Create |
Creates an instance of XmlDictionaryWriter that writes WCF binary XML format. |
Create |
Creates an instance of XmlDictionaryWriter that writes WCF binary XML format. |
Create |
Creates an instance of XmlDictionaryWriter that writes WCF binary XML format. |
Create |
Creates an instance of XmlDictionaryWriter from an existing XmlWriter. |
Create |
Creates an instance of XmlDictionaryWriter that writes XML in the MTOM format. |
Create |
Creates an instance of XmlDictionaryWriter that writes XML in the MTOM format. |
Create |
Creates an instance of XmlDictionaryWriter that writes text XML. |
Create |
Creates an instance of XmlDictionaryWriter that writes text XML. |
Create |
Creates an instance of XmlDictionaryWriter that writes text XML. |
Dispose() |
Releases all resources used by the current instance of the XmlWriter class. (Inherited from XmlWriter) |
Dispose(Boolean) |
Releases the unmanaged resources used by the XmlWriter and optionally releases the managed resources. (Inherited from XmlWriter) |
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. (Inherited from XmlWriter) |
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting managed resources asynchronously. (Inherited from XmlWriter) |
End |
When implemented by a derived class, it stops the canonicalization started by the matching StartCanonicalization(Stream, Boolean, String[]) call. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Flush() |
When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. (Inherited from XmlWriter) |
Flush |
Asynchronously flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. (Inherited from XmlWriter) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Lookup |
When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI. (Inherited from XmlWriter) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Start |
When implemented by a derived class, it starts the canonicalization. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Write |
Writes nodes from a Boolean array. |
Write |
Writes nodes from a DateTime array. |
Write |
Writes nodes from a Decimal array. |
Write |
Writes nodes from a Double array. |
Write |
Writes nodes from a Guid array. |
Write |
Writes nodes from a Int16 array. |
Write |
Writes nodes from a Int32 array. |
Write |
Writes nodes from a Int64 array. |
Write |
Writes nodes from a Single array. |
Write |
Writes nodes from a TimeSpan array. |
Write |
Writes nodes from a Boolean array. |
Write |
Writes nodes from a DateTime array. |
Write |
Writes nodes from a Decimal array. |
Write |
Writes nodes from a Double array. |
Write |
Writes nodes from a Guid array. |
Write |
Writes nodes from a Int16 array. |
Write |
Writes nodes from a Int32 array. |
Write |
Writes nodes from a Int64 array. |
Write |
Writes nodes from a Single array. |
Write |
Writes nodes from a TimeSpan array. |
Write |
When overridden in a derived class, writes out all the attributes found at the current position in the XmlReader. (Inherited from XmlWriter) |
Write |
Asynchronously writes out all the attributes found at the current position in the XmlReader. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes out the attribute with the specified prefix, local name, namespace URI, and value. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes an attribute with the specified local name, namespace URI, and value. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes out the attribute with the specified local name and value. (Inherited from XmlWriter) |
Write |
Writes an attribute qualified name and value. |
Write |
Writes an attribute qualified name and value. |
Write |
Asynchronously writes out the attribute with the specified prefix, local name, namespace URI, and value. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, encodes the specified binary bytes as Base64 and writes out the resulting text. (Inherited from XmlWriter) |
Write |
Asynchronously encodes the specified binary bytes as Base64 and writes out the resulting text. |
Write |
Asynchronously encodes the specified binary bytes as Base64 and writes out the resulting text. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, encodes the specified binary bytes as |
Write |
Asynchronously encodes the specified binary bytes as |
Write |
When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text. (Inherited from XmlWriter) |
Write |
Asynchronously writes out a <![CDATA[...]]> block containing the specified text. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, forces the generation of a character entity for the specified Unicode character value. (Inherited from XmlWriter) |
Write |
Asynchronously forces the generation of a character entity for the specified Unicode character value. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes text one buffer at a time. (Inherited from XmlWriter) |
Write |
Asynchronously writes text one buffer at a time. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes out a comment <!--...--> containing the specified text. (Inherited from XmlWriter) |
Write |
Asynchronously writes out a comment <!--...--> containing the specified text. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes the DOCTYPE declaration with the specified name and optional attributes. (Inherited from XmlWriter) |
Write |
Asynchronously writes the DOCTYPE declaration with the specified name and optional attributes. (Inherited from XmlWriter) |
Write |
Writes an element with the specified prefix, local name, namespace URI, and value. (Inherited from XmlWriter) |
Write |
Writes an element with the specified local name, namespace URI, and value. (Inherited from XmlWriter) |
Write |
Writes an element with the specified local name and value. (Inherited from XmlWriter) |
Write |
Writes an element with a text content. |
Write |
Writes an element with a text content. |
Write |
Asynchronously writes an element with the specified prefix, local name, namespace URI, and value. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, closes the previous WriteStartAttribute(String, String) call. (Inherited from XmlWriter) |
Write |
Asynchronously closes the previous WriteStartAttribute(String, String) call. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, closes any open elements or attributes and puts the writer back in the Start state. (Inherited from XmlWriter) |
Write |
Asynchronously closes any open elements or attributes and puts the writer back in the Start state. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, closes one element and pops the corresponding namespace scope. (Inherited from XmlWriter) |
Write |
Asynchronously closes one element and pops the corresponding namespace scope. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes out an entity reference as |
Write |
Asynchronously writes out an entity reference as |
Write |
When overridden in a derived class, closes one element and pops the corresponding namespace scope. (Inherited from XmlWriter) |
Write |
Asynchronously closes one element and pops the corresponding namespace scope. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (https://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). (Inherited from XmlWriter) |
Write |
Asynchronously writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (https://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation (https://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). (Inherited from XmlWriter) |
Write |
Asynchronously writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation (https://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). (Inherited from XmlWriter) |
Write |
Writes the current XML node from an XmlDictionaryReader. |
Write |
Writes the current XML node from an XmlReader. |
Write |
Copies everything from the XPathNavigator object to the writer. The position of the XPathNavigator remains unchanged. (Inherited from XmlWriter) |
Write |
Asynchronously copies everything from the reader to the writer and moves the reader to the start of the next sibling. (Inherited from XmlWriter) |
Write |
Asynchronously copies everything from the XPathNavigator object to the writer. The position of the XPathNavigator remains unchanged. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows: <?name text?>. (Inherited from XmlWriter) |
Write |
Asynchronously writes out a processing instruction with a space between the name and text as follows: <?name text?>. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace. (Inherited from XmlWriter) |
Write |
Writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace. |
Write |
Asynchronously writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes raw markup manually from a character buffer. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes raw markup manually from a string. (Inherited from XmlWriter) |
Write |
Asynchronously writes raw markup manually from a character buffer. (Inherited from XmlWriter) |
Write |
Asynchronously writes raw markup manually from a string. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes the start of an attribute with the specified prefix, local name, and namespace URI. (Inherited from XmlWriter) |
Write |
Writes the start of an attribute with the specified local name and namespace URI. (Inherited from XmlWriter) |
Write |
Writes the start of an attribute with the specified prefix, local name, and namespace URI. |
Write |
Writes the start of an attribute with the specified local name. (Inherited from XmlWriter) |
Write |
Writes the start of an attribute with the specified local name, and namespace URI. |
Write |
Asynchronously writes the start of an attribute with the specified prefix, local name, and namespace URI. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes the XML declaration with the version "1.0". (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes the XML declaration with the version "1.0" and the standalone attribute. (Inherited from XmlWriter) |
Write |
Asynchronously writes the XML declaration with the version "1.0". (Inherited from XmlWriter) |
Write |
Asynchronously writes the XML declaration with the version "1.0" and the standalone attribute. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes the specified start tag and associates it with the given namespace. (Inherited from XmlWriter) |
Write |
Writes the specified start tag and associates it with the given namespace and prefix. |
Write |
When overridden in a derived class, writes out a start tag with the specified local name. (Inherited from XmlWriter) |
Write |
Writes the specified start tag and associates it with the given namespace. |
Write |
Asynchronously writes the specified start tag and associates it with the given namespace and prefix. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, writes the given text content. (Inherited from XmlWriter) |
Write |
Writes the given text content. |
Write |
Asynchronously writes the given text content. (Inherited from XmlWriter) |
Write |
When overridden in a derived class, generates and writes the surrogate character entity for the surrogate character pair. (Inherited from XmlWriter) |
Write |
Asynchronously generates and writes the surrogate character entity for the surrogate character pair. (Inherited from XmlWriter) |
Write |
Writes the text node that an XmlDictionaryReader is currently positioned on. |
Write |
Writes a Boolean value. (Inherited from XmlWriter) |
Write |
Writes a DateTime value. (Inherited from XmlWriter) |
Write |
Writes a DateTimeOffset value. (Inherited from XmlWriter) |
Write |
Writes a Decimal value. (Inherited from XmlWriter) |
Write |
Writes a Double value. (Inherited from XmlWriter) |
Write |
Writes a Guid value. |
Write |
Writes a Int32 value. (Inherited from XmlWriter) |
Write |
Writes a Int64 value. (Inherited from XmlWriter) |
Write |
Writes a value from an IStreamProvider. |
Write |
Writes the object value. (Inherited from XmlWriter) |
Write |
Writes a single-precision floating-point number. (Inherited from XmlWriter) |
Write |
Writes a String value. (Inherited from XmlWriter) |
Write |
Writes a TimeSpan value. |
Write |
Writes a Unique Id value. |
Write |
Writes a XmlDictionaryString value. |
Write |
Asynchronously writes a value from an IStreamProvider. |
Write |
When overridden in a derived class, writes out the given white space. (Inherited from XmlWriter) |
Write |
Asynchronously writes out the given white space. (Inherited from XmlWriter) |
Write |
Writes a standard XML attribute in the current node. |
Write |
Writes an XML attribute in the current node. |
Write |
Writes a namespace declaration attribute. |
Write |
Writes a namespace declaration attribute. |
IDisposable. |
For a description of this member, see Dispose(). (Inherited from XmlWriter) |
Configure |
Configures how awaits on the tasks returned from an async disposable will be performed. |
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: