Class ContentModelBinder.ModelBindingArgs
Contains event data for the ModelBindingException event.
Inheritance
System.Object
System.EventArgs
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public class ModelBindingArgs : EventArgs
Constructors
View SourceModelBindingArgs(Type, Type, StringBuilder)
Initializes a new instance of the ContentModelBinder.ModelBindingArgs class.
Declaration
public ModelBindingArgs(Type sourceType, Type modelType, StringBuilder message)
Parameters
Type | Name | Description |
---|---|---|
System.Type | sourceType | |
System.Type | modelType | |
System.Text.StringBuilder | message |
Properties
View SourceMessage
Gets the message string builder.
Declaration
public StringBuilder Message { get; }
Property Value
Type | Description |
---|---|
System.Text.StringBuilder |
Remarks
Handlers of the event can append text to the message.
ModelType
Gets the type of the view model.
Declaration
public Type ModelType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Restart
Gets or sets a value indicating whether the application should restart.
Declaration
public bool Restart { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SourceType
Gets the type of the source object.
Declaration
public Type SourceType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |