PostSharpAPI ReferencePost­Sharp.​ExtensibilityMessage­SourceCreate­Message
Open sandboxFocus

MessageSource.CreateMessage Method

CreateMessage(MessageLocation, SeverityType, String, Exception, 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

Location of the source code artifact causing the message.

SeverityType severity

Severity.

System.String messageId

Message identifier (resolved by the current MessageSource).

Exception innerException

Exception causing the message, or null.

Object[] arguments

Arguments of the message text.

Returns
Type Description
Message

A Message.