CompletionMessage.WithError(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructs a CompletionMessage with an error.
public:
static Microsoft::AspNetCore::SignalR::Protocol::CompletionMessage ^ WithError(System::String ^ invocationId, System::String ^ error);
public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage WithError (string invocationId, string error);
public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage WithError (string invocationId, string? error);
static member WithError : string * string -> Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage
Public Shared Function WithError (invocationId As String, error As String) As CompletionMessage
Parameters
- invocationId
- String
The ID of the invocation that is being completed.
- error
- String
The error that occurred during the invocation.
Returns
The constructed CompletionMessage.