For 3rd party class libraries it would be nice to be able to integrate with the exception assistant mechanism. Is this possible and if so, how do you go about doing it
You want to provide tips/help topics for your Exception Type/APIs, right
You can find the exception content file under ExceptionAssistantContent\[LCID] directory (it is called DefaultContent.xml). You can create your own content file just like this file, and put it in the same directory.
Visual Studio will cache the content, so you might have to restart it to read your content.
You can use either a real helpID or a HTTP link in a HelpID field. If it is a HTTP link, we will show the web page (of course, inside the MSDN helper). BTW, you listed two types of rules in the content file.
This type of rule provides link for a general tip like "Get general help for this exception"
<Exception HelpID="System.DivideByZeroException">< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
<Type>System.DivideByZeroException</Type>
</Exception>
This type of rule provides a special link in the tips area.
Can ISVs integrate with the exception assistant?
AJ787
You can find the exception content file under ExceptionAssistantContent\[LCID] directory (it is called DefaultContent.xml). You can create your own content file just like this file, and put it in the same directory.
Visual Studio will cache the content, so you might have to restart it to read your content.
You can use either a real helpID or a HTTP link in a HelpID field. If it is a HTTP link, we will show the web page (of course, inside the MSDN helper). BTW, you listed two types of rules in the content file.
This type of rule provides link for a general tip like "Get general help for this exception"
<Exception HelpID="System.DivideByZeroException">< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
<Type>System.DivideByZeroException</Type>
</Exception>
This type of rule provides a special link in the tips area.
<Exception>
<Type>System.DivideByZeroException</Type>
<Tip HelpID="EHDividebyZero">
<Description>...</Description>
</Tip>
</Exception>
Thanks
Lifeng