mscorlib(4.0.0.0) API with additions
|
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files that contain XML data. More...
Public Member Functions | |
abstract void | WriteStartDocument () |
When overridden in a derived class, writes the XML declaration with the version "1.0". More... | |
abstract void | WriteStartDocument (bool standalone) |
When overridden in a derived class, writes the XML declaration with the version "1.0" and the standalone attribute. More... | |
abstract void | WriteEndDocument () |
When overridden in a derived class, closes any open elements or attributes and puts the writer back in the Start state. More... | |
abstract void | WriteDocType (string name, string pubid, string sysid, string subset) |
When overridden in a derived class, writes the DOCTYPE declaration with the specified name and optional attributes. More... | |
void | WriteStartElement (string localName, string ns) |
When overridden in a derived class, writes the specified start tag and associates it with the given namespace. More... | |
abstract void | WriteStartElement (string prefix, string localName, string ns) |
When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix. More... | |
void | WriteStartElement (string localName) |
When overridden in a derived class, writes out a start tag with the specified local name. More... | |
abstract void | WriteEndElement () |
When overridden in a derived class, closes one element and pops the corresponding namespace scope. More... | |
abstract void | WriteFullEndElement () |
When overridden in a derived class, closes one element and pops the corresponding namespace scope. More... | |
void | WriteAttributeString (string localName, string ns, string value) |
When overridden in a derived class, writes an attribute with the specified local name, namespace URI, and value. More... | |
void | WriteAttributeString (string localName, string value) |
When overridden in a derived class, writes out the attribute with the specified local name and value. More... | |
void | WriteAttributeString (string prefix, string localName, string ns, string value) |
When overridden in a derived class, writes out the attribute with the specified prefix, local name, namespace URI, and value. More... | |
void | WriteStartAttribute (string localName, string ns) |
Writes the start of an attribute with the specified local name and namespace URI. More... | |
abstract void | WriteStartAttribute (string prefix, string localName, string ns) |
When overridden in a derived class, writes the start of an attribute with the specified prefix, local name, and namespace URI. More... | |
void | WriteStartAttribute (string localName) |
Writes the start of an attribute with the specified local name. More... | |
abstract void | WriteEndAttribute () |
When overridden in a derived class, closes the previous M:System.Xml.XmlWriter.WriteStartAttribute(System.String,System.String) call. More... | |
abstract void | WriteCData (string text) |
When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text. More... | |
abstract void | WriteComment (string text) |
When overridden in a derived class, writes out a comment <!–...–> containing the specified text. More... | |
abstract void | WriteProcessingInstruction (string name, string text) |
When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows: <?name text?>. More... | |
abstract void | WriteEntityRef (string name) |
When overridden in a derived class, writes out an entity reference as &name; . More... | |
abstract void | WriteCharEntity (char ch) |
When overridden in a derived class, forces the generation of a character entity for the specified Unicode character value. More... | |
abstract void | WriteWhitespace (string ws) |
When overridden in a derived class, writes out the given white space. More... | |
abstract void | WriteString (string text) |
When overridden in a derived class, writes the given text content. More... | |
abstract void | WriteSurrogateCharEntity (char lowChar, char highChar) |
When overridden in a derived class, generates and writes the surrogate character entity for the surrogate character pair. More... | |
abstract void | WriteChars (char[] buffer, int index, int count) |
When overridden in a derived class, writes text one buffer at a time. More... | |
abstract void | WriteRaw (char[] buffer, int index, int count) |
When overridden in a derived class, writes raw markup manually from a character buffer. More... | |
abstract void | WriteRaw (string data) |
When overridden in a derived class, writes raw markup manually from a string. More... | |
abstract void | WriteBase64 (byte[] buffer, int index, int count) |
When overridden in a derived class, encodes the specified binary bytes as Base64 and writes out the resulting text. More... | |
virtual void | WriteBinHex (byte[] buffer, int index, int count) |
When overridden in a derived class, encodes the specified binary bytes as BinHex and writes out the resulting text. More... | |
virtual void | Close () |
When overridden in a derived class, closes this stream and the underlying stream. More... | |
abstract void | Flush () |
When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. More... | |
abstract string | LookupPrefix (string ns) |
When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI. More... | |
virtual void | WriteNmToken (string name) |
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 (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). More... | |
virtual void | WriteName (string name) |
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 (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). More... | |
virtual void | WriteQualifiedName (string localName, string ns) |
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. More... | |
virtual void | WriteValue (object value) |
Writes the object value. More... | |
virtual void | WriteValue (string value) |
Writes a T:System.String value. More... | |
virtual void | WriteValue (bool value) |
Writes a T:System.Boolean value. More... | |
virtual void | WriteValue (DateTime value) |
Writes a T:System.DateTime value. More... | |
virtual void | WriteValue (DateTimeOffset value) |
Writes a T:System.DateTimeOffset value. More... | |
virtual void | WriteValue (double value) |
Writes a T:System.Double value. More... | |
virtual void | WriteValue (float value) |
Writes a single-precision floating-point number. More... | |
virtual void | WriteValue (decimal value) |
Writes a T:System.Decimal value. More... | |
virtual void | WriteValue (int value) |
Writes a T:System.Int32 value. More... | |
virtual void | WriteValue (long value) |
Writes a T:System.Int64 value. More... | |
virtual void | WriteAttributes (XmlReader reader, bool defattr) |
When overridden in a derived class, writes out all the attributes found at the current position in the T:System.Xml.XmlReader. More... | |
virtual void | WriteNode (XmlReader reader, bool defattr) |
When overridden in a derived class, copies everything from the reader to the writer and moves the reader to the start of the next sibling. More... | |
virtual void | WriteNode (XPathNavigator navigator, bool defattr) |
Copies everything from the T:System.Xml.XPath.XPathNavigator object to the writer. The position of the T:System.Xml.XPath.XPathNavigator remains unchanged. More... | |
void | WriteElementString (string localName, string value) |
Writes an element with the specified local name and value. More... | |
void | WriteElementString (string localName, string ns, string value) |
Writes an element with the specified local name, namespace URI, and value. More... | |
void | WriteElementString (string prefix, string localName, string ns, string value) |
Writes an element with the specified prefix, local name, namespace URI, and value. More... | |
void | Dispose () |
Releases all resources used by the current instance of the T:System.Xml.XmlWriter class. More... | |
virtual Task | WriteStartDocumentAsync () |
Asynchronously writes the XML declaration with the version "1.0". More... | |
virtual Task | WriteStartDocumentAsync (bool standalone) |
Asynchronously writes the XML declaration with the version "1.0" and the standalone attribute. More... | |
virtual Task | WriteEndDocumentAsync () |
Asynchronously closes any open elements or attributes and puts the writer back in the Start state. More... | |
virtual Task | WriteDocTypeAsync (string name, string pubid, string sysid, string subset) |
Asynchronously writes the DOCTYPE declaration with the specified name and optional attributes. More... | |
virtual Task | WriteStartElementAsync (string prefix, string localName, string ns) |
Asynchronously writes the specified start tag and associates it with the given namespace and prefix. More... | |
virtual Task | WriteEndElementAsync () |
Asynchronously closes one element and pops the corresponding namespace scope. More... | |
virtual Task | WriteFullEndElementAsync () |
Asynchronously closes one element and pops the corresponding namespace scope. More... | |
Task | WriteAttributeStringAsync (string prefix, string localName, string ns, string value) |
Asynchronously writes out the attribute with the specified prefix, local name, namespace URI, and value. More... | |
virtual Task | WriteCDataAsync (string text) |
Asynchronously writes out a <![CDATA[...]]> block containing the specified text. More... | |
virtual Task | WriteCommentAsync (string text) |
Asynchronously writes out a comment <!–...–> containing the specified text. More... | |
virtual Task | WriteProcessingInstructionAsync (string name, string text) |
Asynchronously writes out a processing instruction with a space between the name and text as follows: <?name text?>. More... | |
virtual Task | WriteEntityRefAsync (string name) |
Asynchronously writes out an entity reference as &name; . More... | |
virtual Task | WriteCharEntityAsync (char ch) |
Asynchronously forces the generation of a character entity for the specified Unicode character value. More... | |
virtual Task | WriteWhitespaceAsync (string ws) |
Asynchronously writes out the given white space. More... | |
virtual Task | WriteStringAsync (string text) |
Asynchronously writes the given text content. More... | |
virtual Task | WriteSurrogateCharEntityAsync (char lowChar, char highChar) |
Asynchronously generates and writes the surrogate character entity for the surrogate character pair. More... | |
virtual Task | WriteCharsAsync (char[] buffer, int index, int count) |
Asynchronously writes text one buffer at a time. More... | |
virtual Task | WriteRawAsync (char[] buffer, int index, int count) |
Asynchronously writes raw markup manually from a character buffer. More... | |
virtual Task | WriteRawAsync (string data) |
Asynchronously writes raw markup manually from a string. More... | |
virtual Task | WriteBase64Async (byte[] buffer, int index, int count) |
Asynchronously encodes the specified binary bytes as Base64 and writes out the resulting text. More... | |
virtual Task | WriteBinHexAsync (byte[] buffer, int index, int count) |
Asynchronously encodes the specified binary bytes as BinHex and writes out the resulting text. More... | |
virtual Task | FlushAsync () |
Asynchronously flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. More... | |
virtual Task | WriteNmTokenAsync (string name) |
Asynchronously writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). More... | |
virtual Task | WriteNameAsync (string name) |
Asynchronously writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). More... | |
virtual async Task | WriteQualifiedNameAsync (string localName, string ns) |
Asynchronously writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace. More... | |
virtual async Task | WriteAttributesAsync (XmlReader reader, bool defattr) |
Asynchronously writes out all the attributes found at the current position in the T:System.Xml.XmlReader. More... | |
virtual Task | WriteNodeAsync (XmlReader reader, bool defattr) |
Asynchronously copies everything from the reader to the writer and moves the reader to the start of the next sibling. More... | |
virtual async Task | WriteNodeAsync (XPathNavigator navigator, bool defattr) |
Asynchronously copies everything from the T:System.Xml.XPath.XPathNavigator object to the writer. The position of the T:System.Xml.XPath.XPathNavigator remains unchanged. More... | |
async Task | WriteElementStringAsync (string prefix, string localName, string ns, string value) |
Asynchronously writes an element with the specified prefix, local name, namespace URI, and value. More... | |
Static Public Member Functions | |
static XmlWriter | Create (string outputFileName) |
Creates a new T:System.Xml.XmlWriter instance using the specified filename. More... | |
static XmlWriter | Create (string outputFileName, XmlWriterSettings settings) |
Creates a new T:System.Xml.XmlWriter instance using the filename and T:System.Xml.XmlWriterSettings object. More... | |
static XmlWriter | Create (Stream output) |
Creates a new T:System.Xml.XmlWriter instance using the specified stream. More... | |
static XmlWriter | Create (Stream output, XmlWriterSettings settings) |
Creates a new T:System.Xml.XmlWriter instance using the stream and T:System.Xml.XmlWriterSettings object. More... | |
static XmlWriter | Create (TextWriter output) |
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.IO.TextWriter. More... | |
static XmlWriter | Create (TextWriter output, XmlWriterSettings settings) |
Creates a new T:System.Xml.XmlWriter instance using the T:System.IO.TextWriter and T:System.Xml.XmlWriterSettings objects. More... | |
static XmlWriter | Create (StringBuilder output) |
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Text.StringBuilder. More... | |
static XmlWriter | Create (StringBuilder output, XmlWriterSettings settings) |
Creates a new T:System.Xml.XmlWriter instance using the T:System.Text.StringBuilder and T:System.Xml.XmlWriterSettings objects. More... | |
static XmlWriter | Create (XmlWriter output) |
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Xml.XmlWriter object. More... | |
static XmlWriter | Create (XmlWriter output, XmlWriterSettings settings) |
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Xml.XmlWriter and T:System.Xml.XmlWriterSettings objects. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Releases the unmanaged resources used by the T:System.Xml.XmlWriter and optionally releases the managed resources. More... | |
virtual internal Task | WriteStartAttributeAsync (string prefix, string localName, string ns) |
Asynchronously writes the start of an attribute with the specified prefix, local name, and namespace URI. More... | |
virtual internal Task | WriteEndAttributeAsync () |
Asynchronously closes the previous M:System.Xml.XmlWriter.WriteStartAttribute(System.String,System.String) call. More... | |
XmlWriter () | |
Initializes a new instance of the T:System.Xml.XmlWriter class. More... | |
Properties | |
virtual XmlWriterSettings | Settings [get] |
Gets the T:System.Xml.XmlWriterSettings object used to create this T:System.Xml.XmlWriter instance. More... | |
abstract WriteState | WriteState [get] |
When overridden in a derived class, gets the state of the writer. More... | |
virtual XmlSpace | XmlSpace [get] |
When overridden in a derived class, gets an T:System.Xml.XmlSpace representing the current xml:space scope. More... | |
virtual string | XmlLang [get] |
When overridden in a derived class, gets the current xml:lang scope. More... | |
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files that contain XML data.
Definition at line 12 of file XmlWriter.cs.
|
protected |
Initializes a new instance of the T:System.Xml.XmlWriter class.
Definition at line 1649 of file XmlWriter.cs.
|
virtual |
When overridden in a derived class, closes this stream and the underlying stream.
T:System.InvalidOperationException | A call is made to write more output after Close has been called or the result of this call is an invalid XML document. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 353 of file XmlWriter.cs.
|
static |
Creates a new T:System.Xml.XmlWriter instance using the specified filename.
outputFileName | The file to which you want to write. The T:System.Xml.XmlWriter creates a file at the specified path and writes to it in XML 1.0 text syntax. The outputFileName must be a file system path. |
T:System.ArgumentNullException | The url value is null . |
Definition at line 854 of file XmlWriter.cs.
|
static |
Creates a new T:System.Xml.XmlWriter instance using the filename and T:System.Xml.XmlWriterSettings object.
outputFileName | The file to which you want to write. The T:System.Xml.XmlWriter creates a file at the specified path and writes to it in XML 1.0 text syntax. The outputFileName must be a file system path. |
settings | The T:System.Xml.XmlWriterSettings object used to configure the new T:System.Xml.XmlWriter instance. If this is null , a T:System.Xml.XmlWriterSettings with default settings is used.If the T:System.Xml.XmlWriter is being used with the M:System.Xml.Xsl.XslCompiledTransform.Transform(System.String,System.Xml.XmlWriter) method, you should use the P:System.Xml.Xsl.XslCompiledTransform.OutputSettings property to obtain an T:System.Xml.XmlWriterSettings object with the correct settings. This ensures that the created T:System.Xml.XmlWriter object has the correct output settings. |
T:System.ArgumentNullException | The url value is null . |
Definition at line 864 of file XmlWriter.cs.
Creates a new T:System.Xml.XmlWriter instance using the specified stream.
output | The stream to which you want to write. The T:System.Xml.XmlWriter writes XML 1.0 text syntax and appends it to the specified stream. |
T:System.ArgumentNullException | The stream value is null . |
Definition at line 878 of file XmlWriter.cs.
|
static |
Creates a new T:System.Xml.XmlWriter instance using the stream and T:System.Xml.XmlWriterSettings object.
output | The stream to which you want to write. The T:System.Xml.XmlWriter writes XML 1.0 text syntax and appends it to the specified stream. |
settings | The T:System.Xml.XmlWriterSettings object used to configure the new T:System.Xml.XmlWriter instance. If this is null , a T:System.Xml.XmlWriterSettings with default settings is used.If the T:System.Xml.XmlWriter is being used with the M:System.Xml.Xsl.XslCompiledTransform.Transform(System.String,System.Xml.XmlWriter) method, you should use the P:System.Xml.Xsl.XslCompiledTransform.OutputSettings property to obtain an T:System.Xml.XmlWriterSettings object with the correct settings. This ensures that the created T:System.Xml.XmlWriter object has the correct output settings. |
T:System.ArgumentNullException | The stream value is null . |
Definition at line 889 of file XmlWriter.cs.
|
static |
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.IO.TextWriter.
output | The T:System.IO.TextWriter to which you want to write. The T:System.Xml.XmlWriter writes XML 1.0 text syntax and appends it to the specified T:System.IO.TextWriter. |
T:System.ArgumentNullException | The text value is null . |
Definition at line 903 of file XmlWriter.cs.
|
static |
Creates a new T:System.Xml.XmlWriter instance using the T:System.IO.TextWriter and T:System.Xml.XmlWriterSettings objects.
output | The T:System.IO.TextWriter to which you want to write. The T:System.Xml.XmlWriter writes XML 1.0 text syntax and appends it to the specified T:System.IO.TextWriter. |
settings | The T:System.Xml.XmlWriterSettings object used to configure the new T:System.Xml.XmlWriter instance. If this is null , a T:System.Xml.XmlWriterSettings with default settings is used.If the T:System.Xml.XmlWriter is being used with the M:System.Xml.Xsl.XslCompiledTransform.Transform(System.String,System.Xml.XmlWriter) method, you should use the P:System.Xml.Xsl.XslCompiledTransform.OutputSettings property to obtain an T:System.Xml.XmlWriterSettings object with the correct settings. This ensures that the created T:System.Xml.XmlWriter object has the correct output settings. |
T:System.ArgumentNullException | The text value is null . |
Definition at line 914 of file XmlWriter.cs.
|
static |
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Text.StringBuilder.
output | The T:System.Text.StringBuilder to which to write to. Content written by the T:System.Xml.XmlWriter is appended to the T:System.Text.StringBuilder. |
T:System.ArgumentNullException | The builder value is null . |
Definition at line 928 of file XmlWriter.cs.
|
static |
Creates a new T:System.Xml.XmlWriter instance using the T:System.Text.StringBuilder and T:System.Xml.XmlWriterSettings objects.
output | The T:System.Text.StringBuilder to which to write to. Content written by the T:System.Xml.XmlWriter is appended to the T:System.Text.StringBuilder. |
settings | The T:System.Xml.XmlWriterSettings object used to configure the new T:System.Xml.XmlWriter instance. If this is null , a T:System.Xml.XmlWriterSettings with default settings is used.If the T:System.Xml.XmlWriter is being used with the M:System.Xml.Xsl.XslCompiledTransform.Transform(System.String,System.Xml.XmlWriter) method, you should use the P:System.Xml.Xsl.XslCompiledTransform.OutputSettings property to obtain an T:System.Xml.XmlWriterSettings object with the correct settings. This ensures that the created T:System.Xml.XmlWriter object has the correct output settings. |
T:System.ArgumentNullException | The builder value is null . |
Definition at line 939 of file XmlWriter.cs.
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Xml.XmlWriter object.
output | The T:System.Xml.XmlWriter object that you want to use as the underlying writer. |
T:System.ArgumentNullException | The writer value is null . |
Definition at line 957 of file XmlWriter.cs.
|
static |
Creates a new T:System.Xml.XmlWriter instance using the specified T:System.Xml.XmlWriter and T:System.Xml.XmlWriterSettings objects.
output | The T:System.Xml.XmlWriter object that you want to use as the underlying writer. |
settings | The T:System.Xml.XmlWriterSettings object used to configure the new T:System.Xml.XmlWriter instance. If this is null , a T:System.Xml.XmlWriterSettings with default settings is used.If the T:System.Xml.XmlWriter is being used with the M:System.Xml.Xsl.XslCompiledTransform.Transform(System.String,System.Xml.XmlWriter) method, you should use the P:System.Xml.Xsl.XslCompiledTransform.OutputSettings property to obtain an T:System.Xml.XmlWriterSettings object with the correct settings. This ensures that the created T:System.Xml.XmlWriter object has the correct output settings. |
T:System.ArgumentNullException | The writer value is null . |
Definition at line 968 of file XmlWriter.cs.
void System.Xml.XmlWriter.Dispose | ( | ) |
Releases all resources used by the current instance of the T:System.Xml.XmlWriter class.
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Implements System.IDisposable.
Definition at line 814 of file XmlWriter.cs.
|
protectedvirtual |
Releases the unmanaged resources used by the T:System.Xml.XmlWriter and optionally releases the managed resources.
disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 824 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
Flush
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1262 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI.
ns | The namespace URI whose prefix you want to find. |
null
if no matching namespace URI is found in the current scope.T:System.ArgumentException | ns is either null or String.Empty . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
When overridden in a derived class, writes out all the attributes found at the current position in the T:System.Xml.XmlReader.
reader | The XmlReader from which to copy the attributes. |
defattr | true to copy the default attributes from the XmlReader ; otherwise, false . |
T:System.ArgumentNullException | reader is null . |
T:System.Xml.XmlException | The reader is not positioned on an element , attribute or XmlDeclaration node. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 544 of file XmlWriter.cs.
|
virtual |
Asynchronously writes out all the attributes found at the current position in the T:System.Xml.XmlReader.
reader | The XmlReader from which to copy the attributes. |
defattr | true to copy the default attributes from the XmlReader ; otherwise, false . |
WriteAttributes
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1323 of file XmlWriter.cs.
void System.Xml.XmlWriter.WriteAttributeString | ( | string | localName, |
string | ns, | ||
string | value | ||
) |
When overridden in a derived class, writes an attribute with the specified local name, namespace URI, and value.
localName | The local name of the attribute. |
ns | The namespace URI to associate with the attribute. |
value | The value of the attribute. |
T:System.InvalidOperationException | The state of writer is not WriteState.Element or writer is closed. |
T:System.ArgumentException | The xml:space or xml:lang attribute value is invalid. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 155 of file XmlWriter.cs.
void System.Xml.XmlWriter.WriteAttributeString | ( | string | localName, |
string | value | ||
) |
When overridden in a derived class, writes out the attribute with the specified local name and value.
localName | The local name of the attribute. |
value | The value of the attribute. |
T:System.InvalidOperationException | The state of writer is not WriteState.Element or writer is closed. |
T:System.ArgumentException | The xml:space or xml:lang attribute value is invalid. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 169 of file XmlWriter.cs.
void System.Xml.XmlWriter.WriteAttributeString | ( | string | prefix, |
string | localName, | ||
string | ns, | ||
string | value | ||
) |
When overridden in a derived class, writes out the attribute with the specified prefix, local name, namespace URI, and value.
prefix | The namespace prefix of the attribute. |
localName | The local name of the attribute. |
ns | The namespace URI of the attribute. |
value | The value of the attribute. |
T:System.InvalidOperationException | The state of writer is not WriteState.Element or writer is closed. |
T:System.ArgumentException | The xml:space or xml:lang attribute value is invalid. |
T:System.Xml.XmlException | The localName or ns is null . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 186 of file XmlWriter.cs.
Task System.Xml.XmlWriter.WriteAttributeStringAsync | ( | string | prefix, |
string | localName, | ||
string | ns, | ||
string | value | ||
) |
Asynchronously writes out the attribute with the specified prefix, local name, namespace URI, and value.
prefix | The namespace prefix of the attribute. |
localName | The local name of the attribute. |
ns | The namespace URI of the attribute. |
value | The value of the attribute. |
WriteAttributeString
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1064 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, encodes the specified binary bytes as Base64 and writes out the resulting text.
buffer | Byte array to encode. |
index | The position in the buffer indicating the start of the bytes to write. |
count | The number of bytes to write. |
T:System.ArgumentNullException | buffer is null . |
T:System.ArgumentOutOfRangeException | index or count is less than zero. -or-The buffer length minus index is less than count . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously encodes the specified binary bytes as Base64 and writes out the resulting text.
buffer | Byte array to encode. |
index | The position in the buffer indicating the start of the bytes to write. |
count | The number of bytes to write. |
WriteBase64
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1239 of file XmlWriter.cs.
|
virtual |
When overridden in a derived class, encodes the specified binary bytes as BinHex
and writes out the resulting text.
buffer | Byte array to encode. |
index | The position in the buffer indicating the start of the bytes to write. |
count | The number of bytes to write. |
T:System.ArgumentNullException | buffer is null . |
T:System.InvalidOperationException | The writer is closed or in error state. |
T:System.ArgumentOutOfRangeException | index or count is less than zero. -or-The buffer length minus index is less than count . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 345 of file XmlWriter.cs.
|
virtual |
Asynchronously encodes the specified binary bytes as BinHex
and writes out the resulting text.
buffer | Byte array to encode. |
index | The position in the buffer indicating the start of the bytes to write. |
count | The number of bytes to write. |
WriteBinHex
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1252 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text.
text | The text to place inside the CDATA block. |
T:System.ArgumentException | The text would result in a non-well formed XML document. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes out a <![CDATA[...]]> block containing the specified text.
text | The text to place inside the CDATA block. |
WriteCData
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1110 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, forces the generation of a character entity for the specified Unicode character value.
ch | The Unicode character for which to generate a character entity. |
T:System.ArgumentException | The character is in the surrogate pair character range, 0xd800 - 0xdfff . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously forces the generation of a character entity for the specified Unicode character value.
ch | The Unicode character for which to generate a character entity. |
WriteCharEntity
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1155 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes text one buffer at a time.
buffer | Character array containing the text to write. |
index | The position in the buffer indicating the start of the text to write. |
count | The number of characters to write. |
T:System.ArgumentNullException | buffer is null . |
T:System.ArgumentOutOfRangeException | index or count is less than zero.-or-The buffer length minus index is less than count ; the call results in surrogate pair characters being split or an invalid surrogate pair being written. |
T:System.ArgumentException | The buffer parameter value is not valid. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes text one buffer at a time.
buffer | Character array containing the text to write. |
index | The position in the buffer indicating the start of the text to write. |
count | The number of characters to write. |
WriteChars
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1202 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes out a comment <!–...–> containing the specified text.
text | Text to place inside the comment. |
T:System.ArgumentException | The text would result in a non-well-formed XML document. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes out a comment <!–...–> containing the specified text.
text | Text to place inside the comment. |
WriteComment
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1121 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes the DOCTYPE declaration with the specified name and optional attributes.
name | The name of the DOCTYPE. This must be non-empty. |
pubid | If non-null it also writes PUBLIC "pubid" "sysid" where pubid and sysid are replaced with the value of the given arguments. |
sysid | If pubid is null and sysid is non-null it writes SYSTEM "sysid" where sysid is replaced with the value of this argument. |
subset | If non-null it writes [subset] where subset is replaced with the value of this argument. |
T:System.InvalidOperationException | This method was called outside the prolog (after the root element). |
T:System.ArgumentException | The value for name would result in invalid XML. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes the DOCTYPE declaration with the specified name and optional attributes.
name | The name of the DOCTYPE. This must be non-empty. |
pubid | If non-null it also writes PUBLIC "pubid" "sysid" where pubid and sysid are replaced with the value of the given arguments. |
sysid | If pubid is null and sysid is non-null it writes SYSTEM "sysid" where sysid is replaced with the value of this argument. |
subset | If non-null it writes [subset] where subset is replaced with the value of this argument. |
WriteDocType
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1017 of file XmlWriter.cs.
void System.Xml.XmlWriter.WriteElementString | ( | string | localName, |
string | value | ||
) |
Writes an element with the specified local name and value.
localName | The local name of the element. |
value | The value of the element. |
T:System.ArgumentException | The localName value is null or an empty string.-or-The parameter values are not valid. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 769 of file XmlWriter.cs.
void System.Xml.XmlWriter.WriteElementString | ( | string | localName, |
string | ns, | ||
string | value | ||
) |
Writes an element with the specified local name, namespace URI, and value.
localName | The local name of the element. |
ns | The namespace URI to associate with the element. |
value | The value of the element. |
T:System.ArgumentException | The localName value is null or an empty string.-or-The parameter values are not valid. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 782 of file XmlWriter.cs.
void System.Xml.XmlWriter.WriteElementString | ( | string | prefix, |
string | localName, | ||
string | ns, | ||
string | value | ||
) |
Writes an element with the specified prefix, local name, namespace URI, and value.
prefix | The prefix of the element. |
localName | The local name of the element. |
ns | The namespace URI of the element. |
value | The value of the element. |
T:System.ArgumentException | The localName value is null or an empty string.-or-The parameter values are not valid. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 801 of file XmlWriter.cs.
async Task System.Xml.XmlWriter.WriteElementStringAsync | ( | string | prefix, |
string | localName, | ||
string | ns, | ||
string | value | ||
) |
Asynchronously writes an element with the specified prefix, local name, namespace URI, and value.
prefix | The prefix of the element. |
localName | The local name of the element. |
ns | The namespace URI of the element. |
value | The value of the element. |
WriteElementString
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1619 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, closes the previous M:System.Xml.XmlWriter.WriteStartAttribute(System.String,System.String) call.
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
protectedvirtual |
Asynchronously closes the previous M:System.Xml.XmlWriter.WriteStartAttribute(System.String,System.String) call.
WriteEndAttribute
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1099 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, closes any open elements or attributes and puts the writer back in the Start state.
T:System.ArgumentException | The XML document is invalid. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously closes any open elements or attributes and puts the writer back in the Start state.
WriteEndDocument
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1003 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, closes one element and pops the corresponding namespace scope.
T:System.InvalidOperationException | This results in an invalid XML document. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously closes one element and pops the corresponding namespace scope.
WriteEndElement
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1040 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes out an entity reference as &name;
.
name | The name of the entity reference. |
T:System.ArgumentException | name is either null or String.Empty . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes out an entity reference as &name;
.
name | The name of the entity reference. |
WriteEntityRef
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1144 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, closes one element and pops the corresponding namespace scope.
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously closes one element and pops the corresponding namespace scope.
WriteFullEndElement
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1050 of file XmlWriter.cs.
|
virtual |
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 (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
name | The name to write. |
T:System.ArgumentException | name is not a valid XML name; or name is either null or String.Empty . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 392 of file XmlWriter.cs.
|
virtual |
Asynchronously writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
name | The name to write. |
WriteName
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1288 of file XmlWriter.cs.
|
virtual |
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 (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
name | The name to write. |
T:System.ArgumentException | name is not a valid NmToken; or name is either null or String.Empty . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 377 of file XmlWriter.cs.
|
virtual |
Asynchronously writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).
name | The name to write. |
WriteNmToken
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1273 of file XmlWriter.cs.
|
virtual |
When overridden in a derived class, copies everything from the reader to the writer and moves the reader to the start of the next sibling.
reader | The T:System.Xml.XmlReader to read from. |
defattr | true to copy the default attributes from the XmlReader ; otherwise, false . |
T:System.ArgumentNullException | reader is null . |
T:System.ArgumentException | reader contains invalid characters. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 596 of file XmlWriter.cs.
|
virtual |
Copies everything from the T:System.Xml.XPath.XPathNavigator object to the writer. The position of the T:System.Xml.XPath.XPathNavigator remains unchanged.
navigator | The T:System.Xml.XPath.XPathNavigator to copy from. |
defattr | true to copy the default attributes; otherwise, false . |
T:System.ArgumentNullException | navigator is null . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 669 of file XmlWriter.cs.
Asynchronously copies everything from the reader to the writer and moves the reader to the start of the next sibling.
reader | The T:System.Xml.XmlReader to read from. |
defattr | true to copy the default attributes from the XmlReader ; otherwise, false . |
WriteNode
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1373 of file XmlWriter.cs.
|
virtual |
Asynchronously copies everything from the T:System.Xml.XPath.XPathNavigator object to the writer. The position of the T:System.Xml.XPath.XPathNavigator remains unchanged.
navigator | The T:System.Xml.XPath.XPathNavigator to copy from. |
defattr | true to copy the default attributes; otherwise, false . |
WriteNode
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1517 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes out a processing instruction with a space between the name and text as follows: <?name text?>.
name | The name of the processing instruction. |
text | The text to include in the processing instruction. |
T:System.ArgumentException | The text would result in a non-well formed XML document. name is either null or String.Empty .This method is being used to create an XML declaration after M:System.Xml.XmlWriter.WriteStartDocument has already been called. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes out a processing instruction with a space between the name and text as follows: <?name text?>.
name | The name of the processing instruction. |
text | The text to include in the processing instruction. |
WriteProcessingInstruction
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1133 of file XmlWriter.cs.
|
virtual |
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.
localName | The local name to write. |
ns | The namespace URI for the name. |
T:System.ArgumentException | localName is either null or String.Empty . localName is not a valid name. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 405 of file XmlWriter.cs.
|
virtual |
Asynchronously writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace.
localName | The local name to write. |
ns | The namespace URI for the name. |
WriteQualifiedName
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1300 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes raw markup manually from a character buffer.
buffer | Character array containing the text to write. |
index | The position within the buffer indicating the start of the text to write. |
count | The number of characters to write. |
T:System.ArgumentNullException | buffer is null . |
T:System.ArgumentOutOfRangeException | index or count is less than zero. -or-The buffer length minus index is less than count . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
pure virtual |
When overridden in a derived class, writes raw markup manually from a string.
data | String containing the text to write. |
T:System.ArgumentException | data is either null or String.Empty . |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes raw markup manually from a character buffer.
buffer | Character array containing the text to write. |
index | The position within the buffer indicating the start of the text to write. |
count | The number of characters to write. |
WriteRaw
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1215 of file XmlWriter.cs.
|
virtual |
Asynchronously writes raw markup manually from a string.
data | String containing the text to write. |
WriteRaw
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1226 of file XmlWriter.cs.
void System.Xml.XmlWriter.WriteStartAttribute | ( | string | localName, |
string | ns | ||
) |
Writes the start of an attribute with the specified local name and namespace URI.
localName | The local name of the attribute. |
ns | The namespace URI of the attribute. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 199 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes the start of an attribute with the specified prefix, local name, and namespace URI.
prefix | The namespace prefix of the attribute. |
localName | The local name of the attribute. |
ns | The namespace URI for the attribute. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
void System.Xml.XmlWriter.WriteStartAttribute | ( | string | localName | ) |
Writes the start of an attribute with the specified local name.
localName | The local name of the attribute. |
T:System.InvalidOperationException | The writer is closed. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 219 of file XmlWriter.cs.
|
protectedvirtual |
Asynchronously writes the start of an attribute with the specified prefix, local name, and namespace URI.
prefix | The namespace prefix of the attribute. |
localName | The local name of the attribute. |
ns | The namespace URI for the attribute. |
WriteStartAttribute
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1089 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes the XML declaration with the version "1.0".
T:System.InvalidOperationException | This is not the first write method called after the constructor. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
pure virtual |
When overridden in a derived class, writes the XML declaration with the version "1.0" and the standalone attribute.
standalone | If true , it writes "standalone=yes"; if false , it writes "standalone=no". |
T:System.InvalidOperationException | This is not the first write method called after the constructor. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes the XML declaration with the version "1.0".
WriteStartDocument
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 982 of file XmlWriter.cs.
|
virtual |
Asynchronously writes the XML declaration with the version "1.0" and the standalone attribute.
standalone | If true , it writes "standalone=yes"; if false , it writes "standalone=no". |
WriteStartDocument
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 993 of file XmlWriter.cs.
void System.Xml.XmlWriter.WriteStartElement | ( | string | localName, |
string | ns | ||
) |
When overridden in a derived class, writes the specified start tag and associates it with the given namespace.
localName | The local name of the element. |
ns | The namespace URI to associate with the element. If this namespace is already in scope and has an associated prefix, the writer automatically writes that prefix also. |
T:System.InvalidOperationException | The writer is closed. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 110 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes the specified start tag and associates it with the given namespace and prefix.
prefix | The namespace prefix of the element. |
localName | The local name of the element. |
ns | The namespace URI to associate with the element. |
T:System.InvalidOperationException | The writer is closed. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
void System.Xml.XmlWriter.WriteStartElement | ( | string | localName | ) |
When overridden in a derived class, writes out a start tag with the specified local name.
localName | The local name of the element. |
T:System.InvalidOperationException | The writer is closed. |
T:System.Text.EncoderFallbackException | There is a character in the buffer that is a valid XML character but is not valid for the output encoding. For example, if the output encoding is ASCII, you should only use characters from the range of 0 to 127 for element and attribute names. The invalid character might be in the argument of this method or in an argument of previous methods that were writing to the buffer. Such characters are escaped by character entity references when possible (for example, in text nodes or attribute values). However, the character entity reference is not allowed in element and attribute names, comments, processing instructions, or CDATA sections. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 131 of file XmlWriter.cs.
|
virtual |
Asynchronously writes the specified start tag and associates it with the given namespace and prefix.
prefix | The namespace prefix of the element. |
localName | The local name of the element. |
ns | The namespace URI to associate with the element. |
WriteStartElement
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1030 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes the given text content.
text | The text to write. |
T:System.ArgumentException | The text string contains an invalid surrogate pair. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes the given text content.
text | The text to write. |
WriteString
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1177 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, generates and writes the surrogate character entity for the surrogate character pair.
lowChar | The low surrogate. This must be a value between 0xDC00 and 0xDFFF. |
highChar | The high surrogate. This must be a value between 0xD800 and 0xDBFF. |
T:System.ArgumentException | An invalid surrogate character pair was passed. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously generates and writes the surrogate character entity for the surrogate character pair.
lowChar | The low surrogate. This must be a value between 0xDC00 and 0xDFFF. |
highChar | The high surrogate. This must be a value between 0xD800 and 0xDBFF. |
WriteSurrogateCharEntity
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1189 of file XmlWriter.cs.
|
virtual |
Writes the object value.
value | The object value to write. Note With the release of the .NET Framework 3.5, this method accepts T:System.DateTimeOffset as a parameter. |
T:System.ArgumentException | An invalid value was specified. |
T:System.ArgumentNullException | The value is null . |
T:System.InvalidOperationException | The writer is closed or in error state. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 428 of file XmlWriter.cs.
|
virtual |
Writes a T:System.String value.
value | The T:System.String value to write. |
T:System.ArgumentException | An invalid value was specified. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 442 of file XmlWriter.cs.
|
virtual |
Writes a T:System.Boolean value.
value | The T:System.Boolean value to write. |
T:System.ArgumentException | An invalid value was specified. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 455 of file XmlWriter.cs.
|
virtual |
Writes a T:System.DateTime value.
value | The T:System.DateTime value to write. |
T:System.ArgumentException | An invalid value was specified. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 464 of file XmlWriter.cs.
|
virtual |
Writes a T:System.DateTimeOffset value.
value | The T:System.DateTimeOffset value to write. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 473 of file XmlWriter.cs.
|
virtual |
Writes a T:System.Double value.
value | The T:System.Double value to write. |
T:System.ArgumentException | An invalid value was specified. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 490 of file XmlWriter.cs.
|
virtual |
Writes a single-precision floating-point number.
value | The single-precision floating-point number to write. |
T:System.ArgumentException | An invalid value was specified. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 500 of file XmlWriter.cs.
|
virtual |
Writes a T:System.Decimal value.
value | The T:System.Decimal value to write. |
T:System.ArgumentException | An invalid value was specified. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 510 of file XmlWriter.cs.
|
virtual |
Writes a T:System.Int32 value.
value | The T:System.Int32 value to write. |
T:System.ArgumentException | An invalid value was specified. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 520 of file XmlWriter.cs.
|
virtual |
Writes a T:System.Int64 value.
value | The T:System.Int64 value to write. |
T:System.ArgumentException | An invalid value was specified. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 530 of file XmlWriter.cs.
|
pure virtual |
When overridden in a derived class, writes out the given white space.
ws | The string of white space characters. |
T:System.ArgumentException | The string contains non-white space characters. |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
|
virtual |
Asynchronously writes out the given white space.
ws | The string of white space characters. |
WriteWhitespace
operation.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
T:System.InvalidOperationException | An T:System.Xml.XmlWriter asynchronous method was called without setting the P:System.Xml.XmlWriterSettings.Async flag to true . In this case, T:System.InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
Definition at line 1166 of file XmlWriter.cs.
|
get |
Gets the T:System.Xml.XmlWriterSettings object used to create this T:System.Xml.XmlWriter instance.
null
.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 23 of file XmlWriter.cs.
|
get |
When overridden in a derived class, gets the state of the writer.
T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 36 of file XmlWriter.cs.
|
get |
When overridden in a derived class, gets the current xml:lang
scope.
xml:lang
scope.T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 65 of file XmlWriter.cs.
|
get |
When overridden in a derived class, gets an T:System.Xml.XmlSpace representing the current xml:space
scope.
XmlSpace
representing the current xml:space
scope.Value Meaning None
This is the default if no xml:space
scope exists. Default
The current scope is xml:space
="default". Preserve
The current scope is xml:space
="preserve".T:System.InvalidOperationException | An T:System.Xml.XmlWriter method was called before a previous asynchronous operation finished. In this case, T:System.InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
Definition at line 52 of file XmlWriter.cs.