 | IRequestCancellationFeatureTryCancel Method |
[This is preliminary documentation and is subject to change.]
Tries to cancel the request with specified request id.
Namespace:
JsonRpc.Server
Assembly:
JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntaxbool TryCancel(
MessageId id
)
Function TryCancel (
id As MessageId
) As Boolean
Dim instance As IRequestCancellationFeature
Dim id As MessageId
Dim returnValue As Boolean
returnValue = instance.TryCancel(id)
bool TryCancel(
MessageId id
)
abstract TryCancel :
id : MessageId -> bool
Parameters
- id
- Type: JsonRpc.MessagesMessageId
The message id to cancel.
Return Value
Type:
Booleantrue, if the request has been successfully cancelled;
false otherwise.
See Also