Share via


EventDefinition<TParam1,TParam2>.GenerateMessage Method

Definition

Overloads

GenerateMessage(TParam1, TParam2)

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

GenerateMessage(TParam1, TParam2, 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)

Source:
EventDefinition%60%60.cs
Source:
EventDefinition%60%60.cs
Source:
EventDefinition%60%60.cs
Source:
EventDefinition%60%60.cs
Source:
EventDefinition%60%60.cs
Source:
EventDefinition%60%60.cs
Source:
EventDefinition%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);
abstract member GenerateMessage : 'TParam1 * 'TParam2 -> string
override this.GenerateMessage : 'TParam1 * 'TParam2 -> string
Public Overridable Function GenerateMessage (arg1 As TParam1, arg2 As TParam2) As String

Parameters

arg1
TParam1

The first message argument.

arg2
TParam2

The second message argument.

Returns

The message string.

Applies to

GenerateMessage(TParam1, TParam2, Exception)

Source:
EventDefinition%60%60.cs
Source:
EventDefinition%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, Exception exception = default);
abstract member GenerateMessage : 'TParam1 * 'TParam2 * Exception -> string
override this.GenerateMessage : 'TParam1 * 'TParam2 * Exception -> string
Public Overridable Function GenerateMessage (arg1 As TParam1, arg2 As TParam2, Optional exception As Exception = Nothing) As String

Parameters

arg1
TParam1

The first message argument.

arg2
TParam2

The second message argument.

exception
Exception

Optional exception associated with this event.

Returns

The message string.

Applies to