簡體   English   中英

如何從我的 C# XML 文檔注釋鏈接到 MSDN/官方文檔?

[英]How can I link to MSDN/official documentation from my C# XML documentation comments?

給定 XML 對 class 的評論,如下所示:

///<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的引用以鏈接到框架文檔中的相應頁面?

您可以使用href標簽鏈接到 MSDN(或任何其他來源)並執行以下操作:

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

基於url,msdn url 備忘單

這兩個實驗應用了從備忘單中學到的東西

鏈接到 1.1 版本的 frameworkclass

System.Threading.Thread.CurrentPrincipal

鏈接到 4.0 版本的 frameworkclass

System.Threading.Thread.CurrentPrincipal

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM