Web服务中的Request.ServerVariables(asmx)

osh*_*nen 2 .net vb.net web-services asmx .net-3.5

在我的服务器端页面(内部网环境)上,我使用以下代码来找出哪个用户正在使用该页面:

Request.ServerVariables("LOGON_USER")
Run Code Online (Sandbox Code Playgroud)

如何在Web服务(asmx文件)中使用该命令?当我得到一条消息时,我无法使用上面的这一行Request is not declared.

Yah*_*hia 5

HttpContext.Current.Request.ServerVariables...