Write(MessageLocation, SeverityType, string, Exception, params object[])
Declaration
public void Write(MessageLocation location, SeverityType severity, string messageId, Exception innerException, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
MessageLocation | location | Location of the source code artifact that caused the message. |
SeverityType | severity | Message severity (fatal error, error, info, debug). |
string | messageId | Identifier of the message type. |
Exception | innerException | The Exception that caused this message,
or |
object[] | arguments | Array of arguments used to format the message text,
or |
Write(MessageLocation, SeverityType, string, params object[])
Emits a Message.
Declaration
public void Write(MessageLocation location, SeverityType severity, string messageId, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
MessageLocation | location | Location of the source code artifact that caused the message. |
SeverityType | severity | Message severity (fatal error, error, info, debug). |
string | messageId | Identifier of the message type. |
object[] | arguments | Array of arguments used to format the message text,
or |
Write(MemberInfo, SeverityType, string, params object[])
Emits a Message.
Declaration
public void Write(MemberInfo codeElement, SeverityType severity, string messageId, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
MemberInfo | codeElement | Source code artifact (Type, MethodInfo, ConstructorInfo, FieldInfo, EventInfo, PropertyInfo) that caused the message. |
SeverityType | severity | Message severity (fatal error, error, info, debug). |
string | messageId | Identifier of the message type. |
object[] | arguments | Array of arguments used to format the message text,
or |
Write(ParameterInfo, SeverityType, string, params object[])
Emits a Message.
Declaration
public void Write(ParameterInfo codeElement, SeverityType severity, string messageId, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | codeElement | Source code artifact that caused the message. |
SeverityType | severity | Message severity (fatal error, error, info, debug). |
string | messageId | Identifier of the message type. |
object[] | arguments | Array of arguments used to format the message text,
or |
Write(Assembly, SeverityType, string, params object[])
Emits a Message.
Declaration
public void Write(Assembly codeElement, SeverityType severity, string messageId, params object[] arguments)
Parameters
Type | Name | Description |
---|---|---|
Assembly | codeElement | Source code artifact that caused the message. |
SeverityType | severity | Message severity (fatal error, error, info, debug). |
string | messageId | Identifier of the message type. |
object[] | arguments | Array of arguments used to format the message text,
or |
Write(Message)
Writes a message to the sink.
Declaration
public void Write(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | A message. |