System.CodeDom.CodeCatchClause Class

Represents a catch exception block of a try/catch statement.

See Also: CodeCatchClause Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CodeCatchClause

Remarks

System.CodeDom.CodeCatchClause can be used to represent a catch exception block of a try/catch statement.

The CodeCatchClause.CatchExceptionType property specifies the type of exception to catch. The CodeCatchClause.LocalName property specifies a name for the variable representing the exception that has been caught. The CodeCatchClause.Statements collection property contains the statements for the catch block.

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0