JSDate Explicit operator (1 of 2)
Explicitly converts a JSValue
to a nullable JSDate
.
C#
public static explicit operator JSDate?(JSValue value)
parameter | description |
---|---|
value | The JSValue to convert. |
Return Value
The JSDate
if it was successfully created or null
if it was failed.
See Also
- struct JSValue
- struct JSDate
- namespace Microsoft.JavaScript.NodeApi
JSDate Explicit operator (2 of 2)
Explicitly converts a JSValue
to a JSDate
.
C#
public static explicit operator JSDate(JSValue value)
parameter | description |
---|---|
value | The JSValue to convert. |
Return Value
JSDate
struct created based on this JSValue
.
Exceptions
exception | condition |
---|---|
InvalidCastException | Thrown when the T struct cannot be created based on this JSValue . |
See Also
- struct JSValue
- struct JSDate
- namespace Microsoft.JavaScript.NodeApi