Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / On­Exception­Aspect Class / On­Exception­Aspect Methods / On­Exception­Aspect.​Get­Exception­Type Method

OnExceptionAspect.GetExceptionType Method

Gets the type of exception handled by this aspect.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.1.3.0 (6.1.3.0)
Syntax
C#
public virtual Type GetExceptionType(
	MethodBase targetMethod
)

Parameters

targetMethod
Type: System.Reflection.MethodBase
Method to which the current aspect is applied.

Return Value

Type: Type
The type (derived from Exception) of exceptions handled by this aspect.
See Also