Represents the location of a message, which means, for the end-user, a line in a file of source code. From the aspect developer, the location can be known as an object representing an element of code (for instance a Type or MethodInfo). Such implicit locations are resolved by PostSharp to a file and line number.
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public class MessageLocationFields
| Name | Description |
|---|---|
| Unknown | Represents an unknown or indeterminate location of the error message. |
Properties
| Name | Description |
|---|---|
| CodeElement | Element of code (reflection object or |
| EndColumn | Gets the ending column in the file that caused the message. |
| EndLine | Gets the ending line in the file that caused the message. |
| File | Gets the name of the file that caused the message. |
| StartColumn | Gets the starting column in the file that caused the message. |
| StartLine | Gets the starting line in the file that caused the message. |