System.Net.WebHeaderCollection.WebHeaderCollection.Add C# (CSharp) Method

Add() public method

public Add ( string header ) : void
header string
return void
		public void Add (string header)
		{
			if (header == null)
				throw new ArgumentNullException ("header");
			int pos = header.IndexOf (':');
			if (pos == -1)
				throw new ArgumentException ("no colon found", "header");				
			this.Add (header.Substring (0, pos), 
				  header.Substring (pos + 1));
		}
		

Same methods

WebHeaderCollection.WebHeaderCollection::Add ( HttpRequestHeader header, string value ) : void
WebHeaderCollection.WebHeaderCollection::Add ( HttpResponseHeader header, string value ) : void
WebHeaderCollection.WebHeaderCollection::Add ( string name, string value ) : void