如何从我的 C# XML 文档注释链接到 MSDN/官方文档?
给定一个类的 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>
How can I get the引用到 System.Threading.Thread.CurrentPrincipal 和 System.Web.HttpContext.User 来链接到框架文档中的相应页面?
Given an XML comment on a class something like this:
///<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>
How can I get the references to System.Threading.Thread.CurrentPrincipal
and System.Web.HttpContext.User
to link to the appropriate pages in the framework documentation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
href
标记链接到 MSDN(或任何其他与此相关的来源)并执行如下操作:You can use
href
tag to link to MSDN (or any other source for that matter) and do something like this:基于 this url、msdn url 备忘单
以及应用从备忘单中学到的内容的这两个实验
链接到 1.1 版本的frameworkclass
System.Threading.Thread.CurrentPrincipal
链接到4.0版本的frameworkclass
System.Threading.Thread.CurrentPrincipal
Based on this url, the msdn url cheatsheet
and these two experiments applying the things learned from the cheatsheet
link to 1.1 version of frameworkclass
System.Threading.Thread.CurrentPrincipal
link to 4.0 version of frameworkclass
System.Threading.Thread.CurrentPrincipal