共用方式為


JsonRpcResult.SetExpectedResultType(Type) 方法

定義

提供延遲還原序列化 Result 值的提示,作為稍後呼叫 GetResult<T>() 時將使用的類型引數。

protected internal virtual void SetExpectedResultType (Type resultType);
abstract member SetExpectedResultType : Type -> unit
override this.SetExpectedResultType : Type -> unit
Protected Friend Overridable Sub SetExpectedResultType (resultType As Type)

參數

resultType
Type

將做為 的泛型型別引數 GetResult<T>()

適用於