Encapsulates a message (error, warning, info, ...).
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public sealed class MessageConstructors
| 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 |
Properties
| Name | Description |
|---|---|
| HelpLink | 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. |