MessageLocationExtensions.Write Method (MessageSource, IMetadataDeclaration, SeverityType, String, Object[]) |
Namespace: PostSharp.Extensibility
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static void Write( this MessageSource messageSource, IMetadataDeclaration codeElement, SeverityType severity, string messageId, params Object[] arguments )
Parameters
- messageSource
- Type: MessageSource
A MessageSource. - codeElement
- Type: PostSharp.Sdk.CodeModel.IMetadataDeclaration
The element of code to which the message relates (to resolve the file and line of the message). - severity
- Type: SeverityType
Message severity (fatal error, error, info, debug). - messageId
- Type: System.String
Identifier of the message type. - arguments
- Type: System.Object[]
Array of arguments used to format the message text, or null if this message has no argument.