System.Web.HttpRequest.ValidateNameValueCollection C# (CSharp) Method

ValidateNameValueCollection() static private method

static private ValidateNameValueCollection ( string name, NameValueCollection coll ) : void
name string
coll NameValueCollection
return void
		static void ValidateNameValueCollection (string name, NameValueCollection coll)
		{
			if (coll == null)
				return;
		
			foreach (string key in coll.Keys) {
				string val = coll [key];
				if (val != null && val.Length > 0 && IsInvalidString (val))
					ThrowValidationException (name, key, val);
			}
		}
#if NET_4_0

Same methods

HttpRequest::ValidateNameValueCollection ( string name, NameValueCollection coll, RequestValidationSource source ) : void