Table of Contents

Class MessageHostUtil

Namespace
Hi.Common.Messages
Assembly
HiGeom.dll

Utility methods for working with IMessageHost implementations.

public static class MessageHostUtil
Inheritance
MessageHostUtil
Inherited Members

Methods

AddError(IMessageHost, string, params string[])

Adds an error message to the message host.

public static object AddError(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message

AddMessage(IMessageHost, string, params string[])

Adds a message with the specified tags to the message host.

public static object AddMessage(this IMessageHost host, string msg, params string[] tags)

Parameters

host IMessageHost

The message host

msg string

The message content

tags string[]

The tags to associate with the message

Returns

object

The result of adding the message

AddProgress(IMessageHost, string, params string[])

Adds a progress message to the message host.

public static object AddProgress(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message

AddSysErr(IMessageHost, string, params string[])

Adds a system error message to the message host.

public static object AddSysErr(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message

AddWarning(IMessageHost, string, params string[])

Adds a warning message to the message host.

public static object AddWarning(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message