Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlWriter::WriteValue Method (DateTimeOffset)

.NET Framework (current version)
 

Writes a DateTimeOffset value.

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

public:
virtual void WriteValue(
	DateTimeOffset value
)

Parameters

value
Type: System::DateTimeOffset

The DateTimeOffset value to write.

Exception Condition
InvalidOperationException

An XmlWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.”

For asynchronous operations, convert the return value of this method to a string and use the WriteStringAsync method.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: