Click or drag to resize

UserMessages Methods

The UserMessages type exposes the following members.

Methods
  NameDescription
Public methodAdd(UserMessageType, String)
Add message to list of user messages
Public methodAdd(UserMessageType, String, UserMessageContent)
Add message to list of user messages
Public methodAdd(UserMessageType, String, Object)
Add message to list of user messages
Public methodAssign
Add messages with option to clear existing ones
Public methodContains(String)
Check if list contains message
Public methodContains(UserMessageType)
Check if list contains message type
Public methodContainsOtherThan
Check if list contains other messages types then this one
Public methodFindMessages
Return all messages of type
Public methodMessageTypeCount
Count number of messages of type
Public methodSortMessages
Sorts the messages so that errors come first, then warnings and finally informations. Sorting is done in a somewhat clumsy manner in order to preserve the order of which the messages was initially added.
Public methodToString
Returns string containing all messages of type
Top
Extension Methods
  NameDescription
Public Extension MethodParallelForEachAsCurrentIdentityUserMessage
Runs the action in parallel for each item in the list, as the identity in the context This should be used instead of Parallel.ForEach, since Parallel.ForEach is not guaranteed to keep the impersonation context. More on this can be found here: https://stackoverflow.com/questions/26065155/parallel-foreach-changes-impersonation-context
(Defined by LinqExtensions.)
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also