我有一个具有以下功能的课程using System;using System.Collections.Generic;using System.Configuration;using System.Linq;using System.Web;using System.Web.Http;namespace Performance_Dashboard.Controllers{public class GetLoggedInData{ public string ActualUser { get; internal set; } public string GetLoggedInDataofUser() { ActualUser= HttpContext.Current.User.Identity.Name; return ActualUser; } }}我想访问或查看返回的内容,该怎么做?
2 回答
开满天机
TA贡献1786条经验 获得超13个赞
你说
[我设置了一个断点] ...但是我的程序没有转到该函数,这意味着我必须调用它吗?
答案是肯定的。为了达到断点,您必须调用方法:
GetLoggedInData glid = new GetLoggedInData();
glid.GetLoggedInDataofUser();//Call the method. Now the breakpoint will be hit
- 2 回答
- 0 关注
- 228 浏览
添加回答
举报
0/150
提交
取消