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