PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomILogger­Exception­HandlerOn­Invalid­User­Code
Open sandboxFocus

ILoggerExceptionHandler.OnInvalidUserCode Method

OnInvalidUserCode(ref CallerInfo, String, Object[])

Method invoked when the user code calling Logger or LogActivity is invalid, e.g. when the formatting string is incorrect or does not match the arguments.

Declaration
void OnInvalidUserCode(ref CallerInfo callerInfo, string format, params object[] args)
Parameters
Type Name Description
CallerInfo callerInfo

Information about the line of code causing the error.

System.String format

Formatting string of the error message.

Object[] args

Arguments.