PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/ILogging­Exception­Handler Interface/ILogging­Exception­Handler Methods/ILogging­Exception­Handler.​On­Invalid­User­Code Method

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.1.23.0 (6.1.23.0)
Syntax
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.
See Also