METHOD

EditContext.NotifyFieldChanged

Marks the specified field modified and raises its field-change event. This does not assign the property value or guarantee validation; attached validators may react to the event. Requires the ASP.NET Core shared framework or matching reference assemblies.

Formal Syntax & Structure

csharp syntaxcsharp
context.NotifyFieldChanged(field)

Working Example

Example Snippetcsharp
using System;using System.Linq;using System.Threading;using Microsoft.AspNetCore.Components;using Microsoft.AspNetCore.Components.Forms;using Microsoft.AspNetCore.SignalR;var model=new object(); var context=new EditContext(model); var field=context.Field("Title"); context.NotifyFieldChanged(field); Console.WriteLine(context.IsModified(field)); // True
C# & .NET Reference