ILoggingExceptionHandler.OnInvalidUserCode Method |
Method invoked when a logging component detects a precondition violation
that probably stem from user-written code.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.8.6.0 (6.8.6.0)

C#
void OnInvalidUserCode( ref CallerInfo callerInfo, LoggingTypeSource source, string message, params Object[] args )
Parameters
- callerInfo
- Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
Location of the code that performed the invalid call, or an empty instance if the information is not available. - source
- Type: PostSharp.Patterns.Diagnostics.LoggingTypeSource
Related LoggingTypeSource, or null if it is not available. - message
- Type: System.String
Error message formatting string. - args
- Type: System.Object[]
Arguments for the formatting string, or null.
