如何从我的C#XML文档注释中链接到MSDN /官方文档?

时间:2011-07-07 10:58:12

标签: msdn ndoc xml-documentation

给出类似于这样的类的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.CurrentPrincipalSystem.Web.HttpContext.User的引用链接到框架文档中的相应页面?

2 个答案:

答案 0 :(得分:2)

您可以使用href标记链接到MSDN(或其他任何来源)并执行以下操作:

... both the <see href="http://msdn.microsoft.com/en-us/library/system.threading.thread.currentprincipal.aspx">System.Threading.Thread.CurrentPrincipal</see>...

答案 1 :(得分:1)

基于this url,msdn url cheatsheet

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

链接到1.1版本的frameworkclass

System.Threading.Thread.CurrentPrincipal

链接到frameworkclass的4.0版本

System.Threading.Thread.CurrentPrincipal

相关问题