הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
| Value | |
|---|---|
| Rule ID | ASP0019 |
| Category | Usage |
| Fix is breaking or non-breaking | Non-breaking |
Cause
IDictionary.Add isn't recommended for setting or appending headers. IDictionary.Add throws an ArgumentException when attempting to add a duplicate key.
Rule description
IDictionary.Add isn't recommended for setting or appending headers.
How to fix violations
To fix a violation of this rule, use IHeaderDictionary.Append or the indexer to append or set headers.
When to suppress warnings
Do not suppress a warning from this rule.
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.
ASP.NET Core