共用方式為


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

正在完成的調用識別碼。

error
String

叫用期間發生的錯誤。

傳回

建構的 CompletionMessage

適用於