Open sandboxFocus

Method Write

Write(MessageLocation, SeverityType, string, Exception, params object[])

Emits a Message and specifies an inner Exception.

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 null if this message was not caused by an exception.

object[] arguments

Array of arguments used to format the message text, or null if this message has no argument.

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 null if this message has no argument.

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 null if this message has no argument.

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 null if this message has no argument.

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 null if this message has no argument.

Write(Message)

Writes a message to the sink.

Declaration
public void Write(Message message)
Parameters
Type Name Description
Message message

A message.

Implements