JsonElement.GetDateTimeOffset JsonElement.GetDateTimeOffset JsonElement.GetDateTimeOffset JsonElement.GetDateTimeOffset Method

Definition

Gets the value of the element as a DateTimeOffset.

public:
 DateTimeOffset GetDateTimeOffset();
public DateTimeOffset GetDateTimeOffset ();
member this.GetDateTimeOffset : unit -> DateTimeOffset
Public Function GetDateTimeOffset () As DateTimeOffset

Returns

Exceptions

Remarks

This method does not create a DateTimeOffset representation of values other than JSON strings.

Applies to