Table of Contents

Class MessageCollection

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll

A collection of Messages

[Serializable]
[CollectionDataContract]
public class MessageCollection : List<Message>
Inheritance
object
List<Message>
MessageCollection

Constructors

MessageCollection()

public MessageCollection()

MessageCollection(List<Message>)

public MessageCollection(List<Message> src)

Parameters

NameTypeDescription
src List<Message>

Methods

CopyFrom(MessageCollection)

Adds all messages from the source

public void CopyFrom(MessageCollection source)

Parameters

NameTypeDescription
source MessageCollection

The collection to copy from

CopyFrom(List<Message>)

Adds all messages from the source

public void CopyFrom(List<Message> source)

Parameters

NameTypeDescription
source List<Message>

The collection to copy from

HighestSeverity()

Returns the highest severity found in the collection

public MessageType HighestSeverity()

Returns

MessageType

HighestSeverity(List<Message>)

Returns the highest severity found in a collection of messages

public static MessageType HighestSeverity(List<Message> messages)

Parameters

NameTypeDescription
messages List<Message>

The collection to evaluate

Returns

MessageType

ToString()

Returns all of the messages in the collection in a string, with newline separating messages.

public override string ToString()

Returns

string

ToString(FormatOptions)

Returns all of the messages in the collection in a string, with newline separating messages.

public string ToString(Message.FormatOptions formatOptions)

Parameters

NameTypeDescription
formatOptions Message.FormatOptions

Options to use when formatting the messages.

Returns

string

Extension Methods