Files
Umbraco-CMS/src/Umbraco.Core/Notifications/ModelBindingErrorNotification.cs
Nikolaj Brask-Nielsen 6d48091328 docs: XML warnings (#14663)
* chore: Fix XML warnings

* docs: Fix XML warnings

* docs: Fix XML in resource designer

* docs: Fix XML warnings

* Revert "docs: Fix XML in resource designer"

This reverts commit 8ea61c51ac161e1853ae080db7fe1b4d4cb4d2be.
2023-09-06 20:08:17 +02:00

36 lines
1.0 KiB
C#

using System.Text;
namespace Umbraco.Cms.Core.Notifications;
/// <summary>
/// Contains event data for the <see cref="T:Umbraco.Cms.Web.Common.ModelBinders.ModelBindingException" /> event.
/// </summary>
public class ModelBindingErrorNotification : INotification
{
/// <summary>
/// Initializes a new instance of the <see cref="ModelBindingErrorNotification" /> class.
/// </summary>
public ModelBindingErrorNotification(Type sourceType, Type modelType, StringBuilder message)
{
SourceType = sourceType;
ModelType = modelType;
Message = message;
}
/// <summary>
/// Gets the type of the source object.
/// </summary>
public Type SourceType { get; }
/// <summary>
/// Gets the type of the view model.
/// </summary>
public Type ModelType { get; }
/// <summary>
/// Gets the message string builder.
/// </summary>
/// <remarks>Handlers of the event can append text to the message.</remarks>
public StringBuilder Message { get; }
}