IInputFormatter.CanRead(InputFormatterContext) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Bestimmt, ob dies IInputFormatter ein Objekt des context
deserialisieren ModelTypekann.
public:
bool CanRead(Microsoft::AspNetCore::Mvc::Formatters::InputFormatterContext ^ context);
public bool CanRead (Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context);
abstract member CanRead : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> bool
Public Function CanRead (context As InputFormatterContext) As Boolean
Parameter
- context
- InputFormatterContext
Gibt zurück
true
, wenn dies IInputFormatter ein Objekt des context
's ModelTypedeserialisieren kann. Andernfalls false
.
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für