System.Net.Browser.ClientHttpWebRequest.CheckMethod C# (CSharp) Метод

CheckMethod() защищенный Метод

protected CheckMethod ( string method ) : void
method string
Результат void
		protected override void CheckMethod (string method)
		{
			// whitespaces, non-7bits ascii characters and special characters are not allowed
			if (!CheckCharacters (method))
				throw new ArgumentException ("method");

			switch (method.ToLowerInvariant ()) {
			// some verbs are not allowed
			case "connect":
			case "trace":
			case "track":
				throw new NotSupportedException ();
			default:
				break;
			}
		}