OnExceptionAspect.GetExceptionType Method |
Gets the type of exception handled by this aspect.
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
C#
public virtual Type GetExceptionType( MethodBase targetMethod )
Parameters
- targetMethod
- Type: System.Reflection.MethodBase
Method to which the current aspect is applied.
Return Value
Type: TypeThe type (derived from Exception) of exceptions handled by this aspect.