.NET Framework Class Library  

CodeCatchClause.CatchExceptionType Property

Gets or sets the type of the exception to handle with the catch block.

[Visual Basic]
Public Property CatchExceptionType As CodeTypeReference
[C#]
public CodeTypeReference CatchExceptionType {get; set;}
[C++]
public: __property CodeTypeReference* get_CatchExceptionType();
public: __property void set_CatchExceptionType(CodeTypeReference*);
[JScript]
public function get CatchExceptionType() : CodeTypeReference;
public function set CatchExceptionType(CodeTypeReference);

Property Value

A CodeTypeReference that indicates the type of the exception to handle.

Remarks

If a value for this property is not specified, the value of this property defaults to Exception.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

CodeCatchClause Class | CodeCatchClause Members | System.CodeDom Namespace | CodeParameterDeclarationExpression