This documentation is archived and is not being maintained.

XmlWriter.WriteValue Method

Writes a single simple-typed value.

Name Description
XmlWriter.WriteValue (Boolean) Writes a Boolean value.

Supported by the .NET Compact Framework.

XmlWriter.WriteValue (DateTime) Writes a DateTime value.

Supported by the .NET Compact Framework.

XmlWriter.WriteValue (Decimal) Writes a Decimal value.

Supported by the .NET Compact Framework.

XmlWriter.WriteValue (Double) Writes a Double value.

Supported by the .NET Compact Framework.

XmlWriter.WriteValue (Int32) Writes a Int32 value.

Supported by the .NET Compact Framework.

XmlWriter.WriteValue (Int64) Writes a Int64 value.

Supported by the .NET Compact Framework.

XmlWriter.WriteValue (Object) Writes the object value.

Supported by the .NET Compact Framework.

XmlWriter.WriteValue (Single) Writes a single-precision floating-point number.

Supported by the .NET Compact Framework.

XmlWriter.WriteValue (String) Writes a String value.

Supported by the .NET Compact Framework.

The WriteValue method accepts common language runtime (CLR) simple-typed values. This allows you to pipeline simple-type values with minimal re-parsing overhead when passing data between XPathDocument, XmlReader, and XmlWriter objects. This ability is also useful when dealing with CLR simple-types and an XmlWriter instance. You can call the WriteValue method to write the typed value, rather than using the methods on the XmlConvert class to convert the typed data to a string value before writing it out. For more information, see Writing Typed Data.

Show: