Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ファイルを使用してGlobal.asax、C# で実装された Rest サービスを公開します。
Global.asax
RouteTable.Routes.Add(new ServiceRoute("MyServiceAPI", new WebServiceHostFactory(), typeof(MyServiceAPI)));
このファイルからクエリ文字列にアクセスできます ( Request.queryString())
Request.queryString()
私の質問は、Global.asax.
どうもありがとう、
System.Web.HttpContext.Current.Request.Url通常、下位層のクエリ文字列にアクセスする必要がある場合に役立ちます。
System.Web.HttpContext.Current.Request.Url