The cast operator method retrieves the value of the NBElement and explicitly casts it to a DateTimeOffset value.

C# | Visual Basic | Visual C++ | F# |
public static explicit operator DateTimeOffset ( NBElement value )
Public Shared Narrowing Operator CType ( _ value As NBElement _ ) As DateTimeOffset
static explicit operator DateTimeOffset ( NBElement^ value )

- value (NBElement)
- The NBElement whose value is to be cast.

The current element's value cast to the specified type.

Exception | Condition |
---|---|
NBRecoverableException | Thrown if the value can not be converted to a DateTimeOffset. |