MessageFormatterProgressTracker.CreateProgress 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CreateProgress(JsonRpc, Object, Type) |
建立一個新的實例 IProgress<T> ,用於 RPC 呼叫的接收端。 |
| CreateProgress(JsonRpc, Object, Type, Boolean) |
建立一個新的實例 IProgress<T> ,用於 RPC 呼叫的接收端。 |
| CreateProgress<T>(JsonRpc, Object) |
建立一個新的實例 IProgress<T> ,用於 RPC 呼叫的接收端。 |
| CreateProgress<T>(JsonRpc, Object, Boolean) |
建立一個新的實例 IProgress<T> ,用於 RPC 呼叫的接收端。 |
CreateProgress(JsonRpc, Object, Type)
建立一個新的實例 IProgress<T> ,用於 RPC 呼叫的接收端。
public object CreateProgress(StreamJsonRpc.JsonRpc rpc, object token, Type valueType);
member this.CreateProgress : StreamJsonRpc.JsonRpc * obj * Type -> obj
Public Function CreateProgress (rpc As JsonRpc, token As Object, valueType As Type) As Object
參數
- rpc
- JsonRpc
- token
- Object
用於從 取得 MessageFormatterProgressTracker.ProgressParamInformation 實例 StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap的令牌。
- valueType
- Type
就是 intance 會報告的類型 IProgress<T> 。
傳回
備註
這種過載會產生IProgress<T>一個在通知中不使用命名參數的 。
適用於
CreateProgress(JsonRpc, Object, Type, Boolean)
建立一個新的實例 IProgress<T> ,用於 RPC 呼叫的接收端。
public object CreateProgress(StreamJsonRpc.JsonRpc rpc, object token, Type valueType, bool clientRequiresNamedArguments);
member this.CreateProgress : StreamJsonRpc.JsonRpc * obj * Type * bool -> obj
Public Function CreateProgress (rpc As JsonRpc, token As Object, valueType As Type, clientRequiresNamedArguments As Boolean) As Object
參數
- rpc
- JsonRpc
- token
- Object
用於從 取得 MessageFormatterProgressTracker.ProgressParamInformation 實例 StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap的令牌。
- valueType
- Type
一個一般型別,其第一個一般型別參數為 作為所建立 IProgress<T>的型別參數。
- clientRequiresNamedArguments
- Boolean
true 使用命名 ARG 發送 $/進度通知; false 使用立場論證。
傳回
適用於
CreateProgress<T>(JsonRpc, Object)
建立一個新的實例 IProgress<T> ,用於 RPC 呼叫的接收端。
public IProgress<T> CreateProgress<T>(StreamJsonRpc.JsonRpc rpc, object token);
member this.CreateProgress : StreamJsonRpc.JsonRpc * obj -> IProgress<'T>
Public Function CreateProgress(Of T) (rpc As JsonRpc, token As Object) As IProgress(Of T)
類型參數
- T
要報告 IProgress<T>的值類型。
參數
- rpc
- JsonRpc
- token
- Object
用於從 取得 MessageFormatterProgressTracker.ProgressParamInformation 實例 StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap的令牌。
傳回
備註
這種過載會產生IProgress<T>一個在通知中不使用命名參數的 。
適用於
CreateProgress<T>(JsonRpc, Object, Boolean)
建立一個新的實例 IProgress<T> ,用於 RPC 呼叫的接收端。
public IProgress<T> CreateProgress<T>(StreamJsonRpc.JsonRpc rpc, object token, bool clientRequiresNamedArguments);
member this.CreateProgress : StreamJsonRpc.JsonRpc * obj * bool -> IProgress<'T>
Public Function CreateProgress(Of T) (rpc As JsonRpc, token As Object, clientRequiresNamedArguments As Boolean) As IProgress(Of T)
類型參數
- T
要報告 IProgress<T>的值類型。
參數
- rpc
- JsonRpc
- token
- Object
用於從 取得 MessageFormatterProgressTracker.ProgressParamInformation 實例 StreamJsonRpc.Reflection.MessageFormatterProgressTracker.progressMap的令牌。
- clientRequiresNamedArguments
- Boolean
true 使用命名 ARG 發送 $/進度通知; false 使用立場論證。