Open sandboxFocus

Class Message

Encapsulates a message (error, warning, info, ...).

Inheritance
Message
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public sealed class Message

Constructors

Name Description
Message(MessageLocation, SeverityType, string, string, string, string, Exception)

Initializes a new Message and specifies all its properties.

Message(SeverityType, string, string, string, string, string, int, int, Exception)

Initializes a new Message and specifies all its properties.

Message(SeverityType, string, string, string, string, string, int, int, int, int, Exception)

Initializes a new Message and specifies all its properties.

Fields

Name Description
NotAvailable

When set to the locationLine or locationColumn constructor parameter or the StartColumn, EndColumn, StartLine, EndLine, means that the value of this property is unknown.

Properties

Name Description

Gets the help link.

InnerException

Gets the

Location

Location of the source code artifact causing the message.

MessageId

Gets the message type identifier.

MessageText

Gets the message formatted text.

Severity

Gets the message severity.

Source

Gets or sets the name of the source component.

Methods

Name Description
GetExceptionStackMessage(Exception)

Returns a string composed of the messages of all inner exceptions.

Write(Message)

Writes a message by providing a Message object.

Write(MessageLocation, SeverityType, string, string)

Writes a message.

Write(MessageLocation, SeverityType, string, string, params object[])

Writes a message.

Write(LocationInfo, SeverityType, string, string, params object[])

Writes a message.

Write(Assembly, SeverityType, string, string, params object[])

Writes a message.

Write(MemberInfo, SeverityType, string, string, params object[])

Writes a message.

Write(ParameterInfo, SeverityType, string, string, params object[])

Writes a message.

Write(Type, SeverityType, string, string, params object[])

Writes a message.