Navigation :
IMessageService
Name |
Value |
Assembly |
Catel.Core |
Namespace |
Catel.Services |
Available on |
.NET Framework 4.5, .NET Framework 4.6, Xamarin - Android, Xamarin - iOS |
public interface IMessageService
Interface for the message service.
Methods
Shows the specified message and returns the result.
Parameters
Name |
Description |
message |
The message. |
caption |
The caption. |
button |
The button. |
icon |
The icon. |
Returns
The MessageResult.
Exceptions
Name |
Description |
ArgumentException |
The message isnull or whitespace. |
ShowErrorAsync(Exception exception)
Shows an error message to the user and allows a callback operation when the message is completed.
Parameters
Name |
Description |
exception |
The exception. |
Exceptions
Name |
Description |
ArgumentNullException |
The exception isnull . |
ShowErrorAsync(string message, string caption)
Shows an error message to the user and allows a callback operation when the message is completed.
Parameters
Name |
Description |
message |
The message. |
caption |
The caption. |
Exceptions
Name |
Description |
ArgumentException |
The message isnull or whitespace. |
Shows an information message to the user and allows a callback operation when the message is completed.
Parameters
Name |
Description |
message |
The message. |
caption |
The caption. |
Exceptions
Name |
Description |
ArgumentException |
The message isnull or whitespace. |
ShowWarningAsync(string message, string caption)
Shows a warning message to the user and allows a callback operation when the message is completed.
Parameters
Name |
Description |
message |
The message. |
caption |
The caption. |
Exceptions
Name |
Description |
ArgumentException |
The message isnull or whitespace. |
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion