CompletionMessage.WithError(String, String) 方法

定义

构造一个 CompletionMessage 出错的 。

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

参数

invocationId
String

正在完成的调用的 ID。

error
String

调用期间发生的错误。

返回

构造的 CompletionMessage

适用于