Message Class |
Encapsulates a message (error, warning, info, ...).
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
C#
[SerializableAttribute] public sealed class Message
The Message type exposes the following members.
Name | Description | |
---|---|---|
Message(SeverityType, String, String, String) | Obsolete.
Initializes a new Message and specifies only required parameters.
| |
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.
|
Name | Description | |
---|---|---|
HelpLink |
Gets the help link.
| |
InnerException |
Gets the
| |
Location |
Location of the source code artifact causing the message.
| |
LocationEndColumn | Obsolete.
Gets the end column in the file that caused the message.
| |
LocationEndLine | Obsolete.
Gets the end line in the file that caused the message.
| |
LocationFile | Obsolete.
Gets the name of the file that caused
the message.
| |
LocationStartColumn | Obsolete.
Gets the start column in the file that caused the message.
| |
LocationStartLine | Obsolete.
Gets the start line in the file that caused 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.
|
Name | Description | |
---|---|---|
GetExceptionStackMessage |
Returns a string composed of the messages of
all inner exceptions.
| |
Write(Message) |
Writes a message by providing a Message object.
| |
Write(SeverityType, String, String) | Obsolete.
Obsolete.
| |
Write(MessageLocation, SeverityType, String, String) |
Writes a message.
| |
Write(SeverityType, String, String, Object[]) | Obsolete.
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.
| |
Write(LocationInfo, SeverityType, String, String, Object[]) |
Writes a message.
| |
Write(MessageLocation, SeverityType, String, String, Object[]) |
Writes a message.
|
Name | Description | |
---|---|---|
NotAvailable |
When set to the locationLine or locationColumn constructor parameter or the LocationStartColumn,
LocationEndColumn, LocationStartLine, LocationEndLine, means that the value of this property is unknown.
|
Name | Description | |
---|---|---|
QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |