Skip to main content

Definition

Assembly: Microsoft.AspNetCore.Components.Forms.dll Namespace: Microsoft.AspNetCore.Components.Forms

Syntax

Microsoft.AspNetCore.Components.Forms.EditContext

Summary

This type is defined in Microsoft.AspNetCore.Components.Forms.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

NotifyFieldChanged Extension

Extension method from Microsoft.AspNetCore.Components.Forms.EditContextExtensions

Syntax

public static void NotifyFieldChanged(Microsoft.AspNetCore.Components.Forms.EditContext editContext, string field)

Parameters

NameTypeDescription
editContextMicrosoft.AspNetCore.Components.Forms.EditContext-
fieldstringThe field name that was changed in the process, typically specified using “nameof(YourObject.YourProperty”).

NotifyFieldsChanged Extension

Extension method from Microsoft.AspNetCore.Components.Forms.EditContextExtensions

Syntax

public static void NotifyFieldsChanged(Microsoft.AspNetCore.Components.Forms.EditContext editContext, params string[] fields)

Parameters

NameTypeDescription
editContextMicrosoft.AspNetCore.Components.Forms.EditContext-
fieldsstring[]An inline list of fields that were changed in the process, typically specified using “nameof(YourObject.YourProperty”).