ApiBehaviorOptions.ClientErrorMapping Property
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 a map of HTTP status codes to ClientErrorData. Configured values are used to transform IClientErrorActionResult to an ObjectResult instance where the Value is ProblemDetails.
Use of this feature can be disabled by resetting SuppressMapClientErrors.
public:
property System::Collections::Generic::IDictionary<int, Microsoft::AspNetCore::Mvc::ClientErrorData ^> ^ ClientErrorMapping { System::Collections::Generic::IDictionary<int, Microsoft::AspNetCore::Mvc::ClientErrorData ^> ^ get(); };
public System.Collections.Generic.IDictionary<int,Microsoft.AspNetCore.Mvc.ClientErrorData> ClientErrorMapping { get; }
member this.ClientErrorMapping : System.Collections.Generic.IDictionary<int, Microsoft.AspNetCore.Mvc.ClientErrorData>
Public ReadOnly Property ClientErrorMapping As IDictionary(Of Integer, ClientErrorData)
Property Value
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: