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