Class MessageCollection
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
A collection of Messages
[Serializable]
[CollectionDataContract]
public class MessageCollection : List<Message>
- Inheritance
-
objectList<Message>MessageCollection
Constructors
MessageCollection()
public MessageCollection()
MessageCollection(List<Message>)
public MessageCollection(List<Message> src)
Parameters
| Name | Type | Description |
|---|---|---|
src |
List<Message> |
Methods
CopyFrom(MessageCollection)
Adds all messages from the source
public void CopyFrom(MessageCollection source)
Parameters
| Name | Type | Description |
|---|---|---|
source |
MessageCollection | The collection to copy from |
CopyFrom(List<Message>)
Adds all messages from the source
public void CopyFrom(List<Message> source)
Parameters
| Name | Type | Description |
|---|---|---|
source |
List<Message> | The collection to copy from |
HighestSeverity()
Returns the highest severity found in the collection
public MessageType HighestSeverity()
Returns
HighestSeverity(List<Message>)
Returns the highest severity found in a collection of messages
public static MessageType HighestSeverity(List<Message> messages)
Parameters
| Name | Type | Description |
|---|---|---|
messages |
List<Message> | The collection to evaluate |
Returns
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
| Name | Type | Description |
|---|---|---|
formatOptions |
Message.FormatOptions | Options to use when formatting the messages. |
Returns
- string