הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
ASP0024: Route handler has multiple parameters with the
| Value | |
|---|---|
| Rule ID | ASP0024 |
| Category | Usage |
| Fix is breaking or non-breaking | Non-breaking |
Cause
A route handler has multiple parameters with the [FromBody] attribute or a parameter with an [AsParameters] attribute where the parameter type contains multiple members with [FromBody] attributes.
Rule description
Route handler has multiple parameters with the [FromBody] attribute.
How to fix violations
To fix a violation of this rule, remove [FromBody] attributes from all but one parameter.
When to suppress warnings
Do not suppress a warning from this rule.
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.
ASP.NET Core