Message.Write Method (MessageLocation, SeverityType, String, String) |
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static void Write( MessageLocation messageLocation, SeverityType severity, string errorCode, string message )
Parameters
- messageLocation
- Type: PostSharp.Extensibility.MessageLocation
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 MetadataDeclaration. - severity
- Type: PostSharp.Extensibility.SeverityType
Severity. - errorCode
- Type: System.String
Error code. - message
- Type: System.String
Error message.