InputFormatter.CanRead(InputFormatterContext) Metoda

Definice

Určuje, zda lze IInputFormatter deserializovat objekt objektu contextModelType.

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

Parametry

Návraty

truepokud to IInputFormatter může deserializovat objekt objektu contextModelType. false Jinak.

Implementuje

Platí pro