Open sandboxFocus

Method CreateMessage

CreateMessage(MessageLocation, SeverityType, string, Exception, params object[])

Creates a Message from the current MessageSource.

Declaration
public Message CreateMessage(MessageLocation location, SeverityType severity, string messageId, Exception innerException, params object[] arguments)
Parameters
Type Name Description
MessageLocation location

The location of the source code artifact that causes the message.

SeverityType severity

The severity.

string messageId

The message identifier. It is resolved by the current MessageSource.

Exception innerException

The exception that caused the message, or null.

object[] arguments

The arguments of the message text.

Returns
Type Description
Message

A Message.