XmlReader.ReadContentAsDateTimeOffset XmlReader.ReadContentAsDateTimeOffset XmlReader.ReadContentAsDateTimeOffset XmlReader.ReadContentAsDateTimeOffset Method

定义

将当前位置的文本内容作为 DateTimeOffset 对象读取。Reads the text content at the current position as a DateTimeOffset object.

public:
 virtual DateTimeOffset ReadContentAsDateTimeOffset();
public virtual DateTimeOffset ReadContentAsDateTimeOffset ();
abstract member ReadContentAsDateTimeOffset : unit -> DateTimeOffset
override this.ReadContentAsDateTimeOffset : unit -> DateTimeOffset
Public Overridable Function ReadContentAsDateTimeOffset () As DateTimeOffset

返回

作为 DateTimeOffset 对象的文本内容。The text content as a DateTimeOffset object.

异常

在上一次异步操作完成之前调用了 XmlReader 方法。An XmlReader method was called before a previous asynchronous operation finished. 在此情况下,会引发 InvalidOperationException 并显示消息“异步操作已在进行中。”In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

适用于