C#中的REQUEST_TIME

Pan*_*hra 3 c# asp.net

在C#中是否有类似于PHP功能的功能("$_SERVER['REQUEST_TIME']")?

Den*_*aub 9

以下属性返回当前HTTP请求的初始时间戳:

HttpRequest.RequestContext.HttpContext.Timestamp
Run Code Online (Sandbox Code Playgroud)

在ASP.Net-Page中,可以通过以下Request对象访问它:

Request.RequestContext.HttpContext.Timestamp
Run Code Online (Sandbox Code Playgroud)

希望我能提供帮助.