XmlReader.ReadContentAsDateTimeOffset Method

Definition

Reads the text content at the current position as a DateTimeOffset object.

public virtual DateTimeOffset ReadContentAsDateTimeOffset();

Returns

The text content as a DateTimeOffset object.

Exceptions

An XmlReader 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."

Applies to