JsonRpcResult.SetExpectedResultType(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供对值延迟反序列化的 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>()。