• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Visual C# Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
Visual C# Developer Center > Visual C# Forums > Visual C# IDE > Embedding External URLs or Hyperlinks within XML Comments
Ask a questionAsk a question
Search Forums:
  • Search Visual C# IDE Forum Search Visual C# IDE Forum
  • Search All Visual C# Forums Search All Visual C# Forums
  • Search All MSDN Forums Search All MSDN Forums
 

AnswerEmbedding External URLs or Hyperlinks within XML Comments

  • Saturday, January 12, 2008 5:35 PMSqlDataboy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    As a usual part of development, I hit the internet and read and read before I code and code... I would like to be able to credit those from whom I have learned so much by embedding hyperlinks to the sources of my newfound knowledge right in my XML Comments.

     

    I am looking for guidance on which XML Comments tag or techinque would be the most appropriate place to accomplish my goal.  For example, I have been reading up on Database Factory Patterns of late, I'd like to be able to credit David Hayden with something like:

     

    /// <MoreInfoAt url="http://codebetter.com/blogs/david.hayden/articles/59642.aspx"/>

     

    Obviously, the above line is psuedo-code... how do you do it right and well?

    • ReplyReply
    • QuoteQuote
     

Answers

  • Monday, January 14, 2008 3:05 AMChunsheng TangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    Hi,

     

    To insert an external hyperlink, do just as you do in an html file. For example in your scenario, you can add the credit like this:

        /// <summary>

        /// This is a test class.See <a href="http://codebetter.com/blogs/david.hayden/articles/59642.aspx">Credits</a>.

        /// </summary>

     

    And a help documentation tool such as SandCastle will process it properly. The output in the help file would be as this:

    This is a test class. See credits.

     

    Most help files are of html format so it is not hard to understand.  However the tools in VS IDE may not recognize it.

     

    Best Regards

    Chunsheng Tang

     

     

    • ReplyReply
    • QuoteQuote
     

All Replies

  • Monday, January 14, 2008 4:31 AMSqlDataboy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    My Sincere thank to Chunsheng and all of you who assist all of us.

     

    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement