Class DateTimeModelBinder
Binds a datetime in a model using the display format string.
Inheritance
System.Object
DateTimeModelBinder
Implements
Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ChameleonForms.ModelBinders
Assembly: ChameleonForms.dll
Syntax
public class DateTimeModelBinder : IModelBinder
Methods
| Improve this Doc View SourceBindModelAsync(ModelBindingContext)
Called when binding a model using this model binder.
Declaration
public Task BindModelAsync(ModelBindingContext bindingContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext | bindingContext | The context within which binding occurs |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Implements
Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder