EventDefinition<TParam1,TParam2,TParam3,TParam4,TParam5>.GenerateMessage Method

Definition

Overloads

GenerateMessage(TParam1, TParam2, TParam3, TParam4, TParam5)

Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases.

GenerateMessage(TParam1, TParam2, TParam3, TParam4, TParam5, Exception)

Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases.

GenerateMessage(TParam1, TParam2, TParam3, TParam4, TParam5)

Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases.

public virtual string GenerateMessage (TParam1 arg1, TParam2 arg2, TParam3 arg3, TParam4 arg4, TParam5 arg5);
abstract member GenerateMessage : 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 -> string
override this.GenerateMessage : 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 -> string
Public Overridable Function GenerateMessage (arg1 As TParam1, arg2 As TParam2, arg3 As TParam3, arg4 As TParam4, arg5 As TParam5) As String

Parameters

arg1
TParam1

The first message argument.

arg2
TParam2

The second message argument.

arg3
TParam3

The third message argument.

arg4
TParam4

The fourth message argument.

arg5
TParam5

The fifth message argument.

Returns

The message string.

Applies to

GenerateMessage(TParam1, TParam2, TParam3, TParam4, TParam5, Exception)

Generates the message that would be logged without logging it. Typically used for throwing an exception in warning-as-error cases.

public virtual string GenerateMessage (TParam1 arg1, TParam2 arg2, TParam3 arg3, TParam4 arg4, TParam5 arg5, Exception exception = default);
abstract member GenerateMessage : 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * Exception -> string
override this.GenerateMessage : 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * 'TParam5 * Exception -> string
Public Overridable Function GenerateMessage (arg1 As TParam1, arg2 As TParam2, arg3 As TParam3, arg4 As TParam4, arg5 As TParam5, Optional exception As Exception = Nothing) As String

Parameters

arg1
TParam1

The first message argument.

arg2
TParam2

The second message argument.

arg3
TParam3

The third message argument.

arg4
TParam4

The fourth message argument.

arg5
TParam5

The fifth message argument.

exception
Exception

Optional exception associated with this event.

Returns

The message string.

Applies to