InputFormatter.CanRead(InputFormatterContext) 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.
Determines whether this IInputFormatter can deserialize an object of the
context
's ModelType.
public:
virtual bool CanRead(Microsoft::AspNetCore::Mvc::Formatters::InputFormatterContext ^ context);
public virtual bool CanRead (Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context);
abstract member CanRead : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> bool
override this.CanRead : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> bool
Public Overridable Function CanRead (context As InputFormatterContext) As Boolean
Parameters
- context
- InputFormatterContext
Returns
true
if this IInputFormatter can deserialize an object of the
context
's ModelType. false
otherwise.