The GetDateTimeOffset method returns a DateTimeOffset value containing the value of the NBElement.

C# | Visual Basic | Visual C++ | F# |
public DateTimeOffset GetDateTimeOffset()
Public Function GetDateTimeOffset As DateTimeOffset
public: DateTimeOffset GetDateTimeOffset()
member GetDateTimeOffset : unit -> DateTimeOffset

The current element's value.

Exception | Condition |
---|---|
NBRecoverableException | Thrown if the value of the element is not of type DateTimeOffset. |