JSAsyncIterable Explicit operator (1 of 3)
C#
public static explicit operator JSAsyncIterable(JSObject obj)
See Also
- struct JSObject
- struct JSAsyncIterable
- namespace Microsoft.JavaScript.NodeApi
JSAsyncIterable Explicit operator (2 of 3)
Explicitly converts a JSValue
to a nullable JSAsyncIterable
.
C#
public static explicit operator JSAsyncIterable?(JSValue value)
parameter | description |
---|---|
value | The JSValue to convert. |
Return Value
The JSAsyncIterable
if it was successfully created or null
if it was failed.
See Also
- struct JSValue
- struct JSAsyncIterable
- namespace Microsoft.JavaScript.NodeApi
JSAsyncIterable Explicit operator (3 of 3)
Explicitly converts a JSValue
to a JSAsyncIterable
.
C#
public static explicit operator JSAsyncIterable(JSValue value)
parameter | description |
---|---|
value | The JSValue to convert. |
Return Value
JSAsyncIterable
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 JSAsyncIterable
- namespace Microsoft.JavaScript.NodeApi