JsonRpcResult.SetExpectedResultType(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a hint for a deferred deserialization of the Result value as to the type argument that will be used when calling GetResult<T>() later.
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)
Parameters
- resultType
- Type
The type that will be used as the generic type argument to GetResult<T>().