PostSharpAPI ReferencePost­Sharp.​AspectsOn­Exception­AspectGet­Exception­Type
Open sandboxFocus

OnExceptionAspect.GetExceptionType Method

GetExceptionType(MethodBase)

Gets the type of exception handled by this aspect.

Declaration
public virtual Type GetExceptionType(MethodBase targetMethod)
Parameters
Type Name Description
System.Reflection.MethodBase targetMethod

Method to which the current aspect is applied.

Returns
Type Description
System.Type

The type (derived from Exception) of exceptions handled by this aspect.