Share via


JsonRpcResult.SetExpectedResultType(Type) Method

Definition

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

Applies to