10

给定一个类的 XML 注释,如下所示:

///<summary>Handles the AuthenticateRequest event in the ASP.NET page request lifecycle to authenticate users.</summary>
///<remarks>
///<para>This module will authenticate users based on cookies, form posts, or an impersonation request from the  admin system.</para>
///<para>If authentication succeeds, both the <see cref="System.Threading.Thread.CurrentPrincipal" /> and the <see cref="System.Web.HttpContext.User"/> property are set to an instance of <see cref="MyPrincipal"/> representing the authenticated user.</para>
///</remarks>

如何获得对框架文档中相应页面的引用System.Threading.Thread.CurrentPrincipal和链接?System.Web.HttpContext.User

4

2 回答 2

2

You can use href tag to link to MSDN (or any other source for that matter) and do something like this:

... both the <see href="http://msdn.microsoft.com/en-us/library/system.threading.thread.currentprincipal.aspx">System.Threading.Thread.CurrentPrincipal</see>...
于 2012-05-11T16:44:53.183 回答
1

基于这个url,msdn url 备忘单

这两个实验应用了从备忘单中学到的东西

链接到 1.1 版本的 frameworkclass

System.Threading.Thread.CurrentPrincipal

链接到 4.0 版本的 frameworkclass

System.Threading.Thread.CurrentPrincipal

于 2012-01-08T12:01:41.630 回答