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

The location of the source code artifact that caused the message.

SeverityType severity

The message severity (fatal error, error, info, debug).

string messageId

The 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

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

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

The location of the source code artifact that caused the message.

SeverityType severity

The message severity (fatal error, error, info, debug).

string messageId

The identifier of the message type.

object[] arguments

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

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

The source code artifact (Type, MethodInfo, ConstructorInfo, FieldInfo, EventInfo, PropertyInfo) that caused the message.

SeverityType severity

The message severity (fatal error, error, info, debug).

string messageId

The identifier of the message type.

object[] arguments

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

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

The source code artifact that caused the message.

SeverityType severity

The message severity (fatal error, error, info, debug).

string messageId

The identifier of the message type.

object[] arguments

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

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

The source code artifact that caused the message.

SeverityType severity

The message severity (fatal error, error, info, debug).

string messageId

The identifier of the message type.

object[] arguments

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

Write(Message)

Writes a message to the sink.

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

The message to write.

Implements