UserMessages Methods |
The UserMessages type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add(UserMessageType, String) |
Add message to list of user messages
|
![]() | Add(UserMessageType, String, UserMessageContent) |
Add message to list of user messages
|
![]() | Add(UserMessageType, String, Object) |
Add message to list of user messages
|
![]() | Assign |
Add messages with option to clear existing ones
|
![]() | Contains(String) |
Check if list contains message
|
![]() | Contains(UserMessageType) |
Check if list contains message type
|
![]() | ContainsOtherThan |
Check if list contains other messages types then this one
|
![]() | FindMessages |
Return all messages of type
|
![]() | MessageTypeCount |
Count number of messages of type
|
![]() | SortMessages |
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.
|
![]() | ToString |
Returns string containing all messages of type
|
Name | Description | |
---|---|---|
![]() | ParallelForEachAsCurrentIdentityUserMessage |
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.) |
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |