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

IsRestricted() public static method

public static IsRestricted ( string headerName ) : bool
headerName string
return bool
		public static bool IsRestricted (string headerName)
		{
			if (headerName == null)
				throw new ArgumentNullException ("headerName");

			if (headerName == "") // MS throw nullexception here!
				throw new ArgumentException ("empty string", "headerName");

			if (!IsHeaderName (headerName))
				throw new ArgumentException ("Invalid character in header");

			return restricted.ContainsKey (headerName);
		}

Same methods

WebHeaderCollection.WebHeaderCollection::IsRestricted ( string headerName, bool response ) : bool