語言

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>()一般型態參數的型別。

適用於