Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Add() [5/6]

override void System.Net.WebHeaderCollection.Add ( string name,
string? value )
inline

Definition at line 310 of file WebHeaderCollection.cs.

311 {
312 if (name == null)
313 {
314 throw new ArgumentNullException("name");
315 }
316 if (name.Length == 0)
317 {
318 throw new ArgumentException(System.SR.Format(System.SR.net_emptyStringCall, "name"), "name");
319 }
320 name = HttpValidationHelpers.CheckBadHeaderNameChars(name);
321 value = HttpValidationHelpers.CheckBadHeaderValueChars(value);
324 }
static string net_emptyStringCall
Definition SR.cs:18
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.Collections.Specialized.NameValueCollection.Add(), System.Net.HttpValidationHelpers.CheckBadHeaderNameChars(), System.Net.HttpValidationHelpers.CheckBadHeaderValueChars(), System.SR.Format(), System.Net.WebHeaderCollection.InnerCollection, System.Collections.Specialized.NameValueCollection.InvalidateCachedArrays(), System.SR.net_emptyStringCall, and System.value.