JsonRpc.NotifyWithParameterObjectAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
NotifyWithParameterObjectAsync(String, Object, IReadOnlyDictionary<String,Type>) |
応答を待たずに、JSON-RPC サーバーで特定のメソッドを呼び出します。 |
NotifyWithParameterObjectAsync(String, Object) |
サーバー上でメソッドを呼び出し、その完了を待たないでください。 パラメーターはオブジェクトとして渡されます。 |
NotifyWithParameterObjectAsync(String, Object, IReadOnlyDictionary<String,Type>)
応答を待たずに、JSON-RPC サーバーで特定のメソッドを呼び出します。
public System.Threading.Tasks.Task NotifyWithParameterObjectAsync (string targetName, object? argument, System.Collections.Generic.IReadOnlyDictionary<string,Type>? argumentDeclaredTypes);
member this.NotifyWithParameterObjectAsync : string * obj * System.Collections.Generic.IReadOnlyDictionary<string, Type> -> System.Threading.Tasks.Task
Public Function NotifyWithParameterObjectAsync (targetName As String, argument As Object, argumentDeclaredTypes As IReadOnlyDictionary(Of String, Type)) As Task
パラメーター
- targetName
- String
呼び出すメソッドの名前。 null または空にすることはできません。
- argument
- Object
ターゲット メソッドのパラメーターの名前と一致するプロパティを持つオブジェクト。 選択した IJsonRpcMessageFormatter値を使用してシリアル化できる必要があります。
- argumentDeclaredTypes
- IReadOnlyDictionary<String,Type>
唯一の Type 要素で IReadOnlyDictionary<TKey,TValue> 指定された各エントリがサーバーによってどのように型指定されるかを記述するオブジェクトの arguments
ディクショナリ。
指定する場合、これは、最初の要素 arguments
に含まれるディクショナリとまったく同じキーセットを持ち、値を含めてはなりません null
。
戻り値
通知が送信されたときに完了するタスク。
注釈
サーバー側で発生したエラーはすべて無視されます。
適用対象
NotifyWithParameterObjectAsync(String, Object)
サーバー上でメソッドを呼び出し、その完了を待たないでください。 パラメーターはオブジェクトとして渡されます。
public System.Threading.Tasks.Task NotifyWithParameterObjectAsync (string targetName, object argument = default);
public System.Threading.Tasks.Task NotifyWithParameterObjectAsync (string targetName, object? argument = default);
member this.NotifyWithParameterObjectAsync : string * obj -> System.Threading.Tasks.Task
Public Function NotifyWithParameterObjectAsync (targetName As String, Optional argument As Object = Nothing) As Task
パラメーター
- targetName
- String
サーバーで呼び出すメソッドの名前。 null または空の文字列にすることはできません。
- argument
- Object
メソッド引数。JSON にシリアル化できる必要があります。
戻り値
通知要求がチャネルにサーバーに送信されるときに完了するタスク。
例外
null の場合 targetName
。
このインスタンス JsonRpc が破棄されている場合。
注釈
サーバー側で発生したエラーはすべて無視されます。