System.Net.Browser.BrowserHttpWebRequest.CheckMethod C# (CSharp) Méthode

CheckMethod() protected méthode

protected CheckMethod ( string method ) : void
method string
Résultat void
		protected override void CheckMethod (string method)
		{
			if (method == null)
				throw new NotSupportedException ("method");

			switch (method.ToLowerInvariant ()) {
			case "get":
			case "post":
				break;
			default:
				throw new NotSupportedException ();
			}
		}