更新:2007 年 11 月
<exception cref="member">description</exception>  | 
参数
备注
<exception> 标记使您可以指定哪些异常可被引发。此标记可用在方法、属性、事件和索引器的定义中。
使用 
示例
| C# | |
|---|---|
// 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) { } } }  | |