InputFormatter.CanRead(InputFormatterContext) Metoda

Definice

Určuje, zda to IInputFormatter může deserializovat objekt 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

Parametry

Návraty

Boolean

true , pokud to IInputFormatter může deserializovat objekt context's ModelType. jinak nepravda .

Implementuje

Platí pro