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>()

适用于