Links to Methods or Events section

Topics: User Forum
Jan 21, 2011 at 5:01 PM

Is it possible to create a link to the Events or Methods section of a given class ?

 

I have tried many formulation ... no luck.

 

Thanks for any help....

 

Noel

Coordinator
Jan 24, 2011 at 8:26 PM

You can use an externalLink element in a MAML topic or an anchor tag in XML comments to link to the Events or Methods pages.  You'll need to look at the HTML for the page in question to get its ID.  Search for "guid" to find the meta element containing the ID.  Once you have it, you can create the link as follows:

MAML:

<externalLink>
    <linkText>SomeClass Events</linkText>
    <linkUri>d4648875-d41a-783b-d5f4-638df39ee413.htm</linkUri>
    <linkTarget>_self</linkTarget>
</externalLink>

XML Comments:

/// <a href="d4648875-d41a-783b-d5f4-638df39ee413.htm">SomeClass Events</a>

Eric

 

Jan 25, 2011 at 2:36 PM
Edited Jan 25, 2011 at 2:56 PM

Hello Eric

Thank you for your reply.

 I forgot to mention but the link was from a MAML 'conceptual content' file.

So the MAML link to the Members page of a class (in the topic files) works :

<linkUri>d0241818-79b5-0b8c-1119-ebf5bb2c2df2.htm</linkUri>

Thank you for your help !!!

Noel