CompletionMessage.WithResult(String, Object) 方法

定义

使用 CompletionMessage 结果构造 。

public:
 static Microsoft::AspNetCore::SignalR::Protocol::CompletionMessage ^ WithResult(System::String ^ invocationId, System::Object ^ payload);
public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage WithResult (string invocationId, object payload);
public static Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage WithResult (string invocationId, object? payload);
static member WithResult : string * obj -> Microsoft.AspNetCore.SignalR.Protocol.CompletionMessage
Public Shared Function WithResult (invocationId As String, payload As Object) As CompletionMessage

参数

invocationId
String

正在完成的调用的 ID。

payload
Object

调用的结果。

返回

构造的 CompletionMessage

适用于