使用静态ParseQueryString方法System.Web.HttpUtility类返回的NameValueCollection.
ParseQueryString
System.Web.HttpUtility
NameValueCollection
Uri myUri = new Uri("http://www.example.com?param1=good¶m2=bad"); string param1 = HttpUtility.ParseQueryString(myUri.Query).Get("param1");