System.Net.WebHeaderCollection.WebHeaderCollection.IsRestricted C# (CSharp) Méthode

IsRestricted() public static méthode

public static IsRestricted ( string headerName, bool response ) : bool
headerName string
response bool
Résultat bool
		public static bool IsRestricted (string headerName, bool response)
		{
			if (String.IsNullOrEmpty (headerName))
				throw new ArgumentNullException ("headerName");

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


			if (response)
				return restricted_response.ContainsKey (headerName);
			return restricted.ContainsKey (headerName);
		}

Same methods

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