如何在Asp.net Core中获取用户浏览器名称(user-agent)? [英] How to get user Browser name ( user-agent ) in Asp.net Core?
本文介绍了如何在Asp.net Core中获取用户浏览器名称(user-agent)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
能否让我知道如何获取客户端在MVC 6,asp.net 5中使用的浏览器的名称?
Can you please let me know how to get the name of the browser that client is using in MVC 6 , asp.net 5?
推荐答案
我认为这很简单.在Request.Headers["User-Agent"].ToString()
谢谢
这篇关于如何在Asp.net Core中获取用户浏览器名称(user-agent)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文