PostSharp.ILAPI 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
MethodBase targetMethod

Method to which the current aspect is applied.

Returns
Type Description
Type

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