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