Share via


EventDefinition.GenerateMessage Method

Definition

Overloads

GenerateMessage()

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

GenerateMessage(Exception)

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

GenerateMessage()

Source:
EventDefinition.cs
Source:
EventDefinition.cs
Source:
EventDefinition.cs
Source:
EventDefinition.cs
Source:
EventDefinition.cs
Source:
EventDefinition.cs
Source:
EventDefinition.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 ();
abstract member GenerateMessage : unit -> string
override this.GenerateMessage : unit -> string
Public Overridable Function GenerateMessage () As String

Returns

The message string.

Applies to

GenerateMessage(Exception)

Source:
EventDefinition.cs
Source:
EventDefinition.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 (Exception exception = default);
abstract member GenerateMessage : Exception -> string
override this.GenerateMessage : Exception -> string
Public Overridable Function GenerateMessage (Optional exception As Exception = Nothing) As String

Parameters

exception
Exception

Optional exception associated with this event.

Returns

The message string.

Applies to