XamlXmlWriter.WriteValue Method (Object)

.NET Framework (current version)
 

Writes a XAML value node to the underlying XmlWriter or TextWriter. Throws an exception if the current position of the XAML node stream is invalid for writing a value, or the writer is in a state where a value cannot be written.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public override void WriteValue(
	object value
)

Parameters

value
Type: System.Object

The value information to write.

Exception Condition
InvalidOperationException

The current position of the XAML node stream is not valid for writing a value.

XamlXmlWriterException

The XAML writer state does not support the writing of a value node.

ArgumentException

value specifies a value that is not null or a string.

The input value may be null, which supports explicitly writing out null as a serialized value. This behavior uses the XamlLanguage.Null definition as WriteStartObject input and then immediately calls WriteEndObject.

.NET Framework
Available since 4.0
Return to top
Show: