共用方式為


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

正在完成之調用的識別碼。

payload
Object

叫用的結果。

傳回

建構的 CompletionMessage

適用於