Share via


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

Definition

Overloads

GenerateMessage(TParam1, TParam2, TParam3, TParam4)

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, 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)

Source:
EventDefinition%60%60%60%60.cs
Source:
EventDefinition%60%60%60%60.cs
Source:
EventDefinition%60%60%60%60.cs
Source:
EventDefinition%60%60%60%60.cs
Source:
EventDefinition%60%60%60%60.cs
Source:
EventDefinition%60%60%60%60.cs
Source:
EventDefinition%60%60%60%60.cs

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);
abstract member GenerateMessage : 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 -> string
override this.GenerateMessage : 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 -> string
Public Overridable Function GenerateMessage (arg1 As TParam1, arg2 As TParam2, arg3 As TParam3, arg4 As TParam4) 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.

Returns

The message string.

Applies to

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

Source:
EventDefinition%60%60%60%60.cs
Source:
EventDefinition%60%60%60%60.cs

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, Exception exception = default);
abstract member GenerateMessage : 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * Exception -> string
override this.GenerateMessage : 'TParam1 * 'TParam2 * 'TParam3 * 'TParam4 * Exception -> string
Public Overridable Function GenerateMessage (arg1 As TParam1, arg2 As TParam2, arg3 As TParam3, arg4 As TParam4, 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.

exception
Exception

Optional exception associated with this event.

Returns

The message string.

Applies to