Message(MessageLocation, SeverityType, string, string, string, string, Exception)
Initializes a new instance of the Message class and specifies all its properties.
Declaration
public Message(MessageLocation location, SeverityType severity, string messageId, string messageText, string helpLink, string source, Exception innerException)Parameters
| Type | Name | Description |
|---|---|---|
| MessageLocation | location | The element of code (Assembly, Type, MethodInfo,
ConstructorInfo, PropertyInfo, EventInfo or ParameterInfo)
to which the message applies. When called from PostSharp.Sdk, the parameter can also contain a |
| SeverityType | severity | The message severity (fatal error, error, info, debug). |
| string | messageId | The identifier of the message type. |
| string | messageText | The fully formatted message text. |
| string | helpLink | The link to the help file page associated with this message. |
| string | source | The name of the component that emits the message. |
| Exception | innerException | The Exception that caused this message,
or |
Message(SeverityType, string, string, string, string, string, int, int, Exception)
Initializes a new instance of the Message class and specifies all its properties.
Declaration
public Message(SeverityType severity, string messageId, string messageText, string helpLink, string source, string locationFile, int locationLine, int locationColumn, Exception innerException)Parameters
| Type | Name | Description |
|---|---|---|
| SeverityType | severity | The message severity (fatal error, error, info, debug). |
| string | messageId | The identifier of the message type. |
| string | messageText | The fully formatted message text. |
| string | helpLink | The link to the help file page associated with this message. |
| string | source | The name of the component that emits the message. |
| string | locationFile | The file that caused the error, or |
| int | locationLine | The position (line) in the file that caused the error, or NotAvailable if the line is unknown or does not apply. |
| int | locationColumn | The position (column) in the file that caused the error, or NotAvailable if the column is unknown or does not apply. |
| Exception | innerException | The Exception that caused this message,
or |
Message(SeverityType, string, string, string, string, string, int, int, int, int, Exception)
Initializes a new instance of the Message class and specifies all its properties.
Declaration
public Message(SeverityType severity, string messageId, string messageText, string helpLink, string source, string locationFile, int locationStartLine, int locationStartColumn, int locationEndLine, int locationEndColumn, Exception innerException)Parameters
| Type | Name | Description |
|---|---|---|
| SeverityType | severity | The message severity (fatal error, error, info, debug). |
| string | messageId | The identifier of the message type. |
| string | messageText | The fully formatted message text. |
| string | helpLink | The link to the help file page associated with this message. |
| string | source | The name of the component that emits the message. |
| string | locationFile | The file that caused the error, or |
| int | locationStartLine | The start position (line) in the file that caused the error, or NotAvailable if the line is unknown or does not apply. |
| int | locationStartColumn | The start position (column) in the file that caused the error, or NotAvailable if the column is unknown or does not apply. |
| int | locationEndLine | The end position (line) in the file that caused the error, or NotAvailable if the line is unknown or does not apply. |
| int | locationEndColumn | The end position (column) in the file that caused the error, or NotAvailable if the column is unknown or does not apply. |
| Exception | innerException | The Exception that caused this message,
or |