文档注释标记里有<exception>这个标记,用法为<exception cref="member">description</exception>,如:
// compile with: /doc:DocFileName.xml
/// comment for class
public class EClass : System.Exception
{
// class definition...
}
/// comment for class
class TestClass
{
/// <exception cref="System.Exception">Thrown when...</exception>
public void DoSomething()
{
try
{
}
catch (EClass)
{
}
}
}
具体请参考MSDN。