Dela via


CompletionMessage.WithError(String, String) Method

Definition

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.

Applies to