Compartir a través de


DelegatingXmlDictionaryWriter Class

Definition

Wraps a XmlDictionaryWriter and delegates to InnerWriter.

public class DelegatingXmlDictionaryWriter : System.Xml.XmlDictionaryWriter
type DelegatingXmlDictionaryWriter = class
    inherit XmlDictionaryWriter
Public Class DelegatingXmlDictionaryWriter
Inherits XmlDictionaryWriter
Inheritance
DelegatingXmlDictionaryWriter
Derived

Constructors

DelegatingXmlDictionaryWriter()

Initializes a new instance of DelegatingXmlDictionaryWriter

Properties

InnerWriter

Gets or sets the InnerWriter.

TracingWriter

Gets or sets a XmlDictionaryWriter for tracing.

UseInnerWriter

Gets the UseInnerWriter

WriteState

When overridden in a derived class, gets the state of the writer.

Methods

Flush()

Flushes the underlying stream.

LookupPrefix(String)

Returns the closest prefix defined in the current namespace scope for the namespace URI.

WriteBase64(Byte[], Int32, Int32)

Encodes the specified binary bytes as Base64 and writes out the resulting text.

WriteCData(String)

Writes out a CDATA block containing the specified text.

WriteCharEntity(Char)

Forces the generation of a character entity for the specified Unicode character value.

WriteChars(Char[], Int32, Int32)

When overridden in a derived class, writes text one buffer at a time.

WriteComment(String)

Writes out a comment containing the specified text.

WriteDocType(String, String, String, String)

Writes the DOCTYPE declaration with the specified name and optional attributes.

WriteEndAttribute()

Closes the previous System.Xml.XmlWriter.WriteStartAttribute(System.String,System.String) call.

WriteEndDocument()

Closes any open elements or attributes and puts the writer back in the Start state.

WriteEndElement()

Closes one element and pops the corresponding namespace scope.

WriteEntityRef(String)

Writes out an entity reference as name.

WriteFullEndElement()

Closes one element and pops the corresponding namespace scope.

WriteProcessingInstruction(String, String)

Writes out a processing instruction with a space between the name and text as follows: <?name text?>.

WriteRaw(Char[], Int32, Int32)

When overridden in a derived class, writes raw markup manually from a character buffer.

WriteRaw(String)

Writes raw markup manually from a string.

WriteStartAttribute(String, String, String)

Writes the start of an attribute with the specified local name and namespace URI.

WriteStartDocument()

When overridden in a derived class, writes the XML declaration with the version "1.0".

WriteStartDocument(Boolean)

When overridden in a derived class, writes the XML declaration with the version "1.0" and the standalone attribute.

WriteStartElement(String, String, String)

When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix.

WriteString(String)

Writes the given text content.

WriteSurrogateCharEntity(Char, Char)

Generates and writes the surrogate character entity for the surrogate character pair.

WriteWhitespace(String)

Writes out the given white space.

WriteXmlAttribute(String, String)

Writes an attribute as a xml attribute with the prefix 'xml:'.

WriteXmlnsAttribute(String, String)

Writes an xmlns namespace declaration.

Applies to