Share via


IActionResultTypeMapper.GetResultDataType(Type) Method

Definition

Gets the result data type that corresponds to returnType. This method will not be called for actions that return void or an IActionResult type.

public:
 Type ^ GetResultDataType(Type ^ returnType);
public Type GetResultDataType (Type returnType);
abstract member GetResultDataType : Type -> Type
Public Function GetResultDataType (returnType As Type) As Type

Parameters

returnType
Type

The declared return type of an action.

Returns

A Type that represents the response data.

Remarks

Prior to calling this method, the infrastructure will unwrap Task<TResult> or other task-like types.

Applies to