[英] Where is the constant for "HttpRequest.RequestType" and "WebRequest.Method" values in .NET?
我需要在ASP.NET中判断HttpRequest
的RequestType
(或WebRequest.Method
).我知道我可以只使用字符串值"POST
"或"GET
"作为请求类型,但是我可以发誓在.NET的某个类中的某个位置有一个包含这些值的常量.
出于好奇,我想知道是否有人知道这些GET
和POST
的字符串常量属于哪一类.我试过在网上搜索,但运气不好,所以我想在这里问一下.