IActionResultTypeMapper.GetResultDataType(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.
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.