PostSharp.ILAPI ReferencePost­Sharp.​ExtensibilityMessage
Open sandboxFocus

Message Class

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

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

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, Int32, Int32, Exception)

Initializes a new Message and specifies all its properties.

Message(SeverityType, String, String, String, String, String, Int32, Int32, Int32, Int32, 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, Object[])

Writes a message.

Write(LocationInfo, SeverityType, String, String, Object[])

Writes a message.

Write(Assembly, SeverityType, String, String, Object[])

Writes a message.

Write(MemberInfo, SeverityType, String, String, Object[])

Writes a message.

Write(ParameterInfo, SeverityType, String, String, Object[])

Writes a message.

Write(Type, SeverityType, String, String, Object[])

Writes a message.