> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# EditContext

> Extension methods for EditContext from Microsoft.AspNetCore.Components.Forms

## Definition

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

**Namespace:** Microsoft.AspNetCore.Components.Forms

## Syntax

```csharp theme={"dark"}
Microsoft.AspNetCore.Components.Forms.EditContext
```

## Summary

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

## Remarks

See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.forms.editcontext) for more information about the rest of the API.

## Methods

### <Icon icon="puzzle-piece" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> NotifyFieldChanged <Badge color="green">Extension</Badge>

<Note>Extension method from `Microsoft.AspNetCore.Components.Forms.EditContextExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void NotifyFieldChanged(Microsoft.AspNetCore.Components.Forms.EditContext editContext, string field)
```

#### Parameters

| Name          | Type                                                | Description                                                                                                  |
| ------------- | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| `editContext` | `Microsoft.AspNetCore.Components.Forms.EditContext` | -                                                                                                            |
| `field`       | `string`                                            | The field name that was changed in the process, typically specified using "nameof(YourObject.YourProperty"). |

### <Icon icon="puzzle-piece" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> NotifyFieldsChanged <Badge color="green">Extension</Badge>

<Note>Extension method from `Microsoft.AspNetCore.Components.Forms.EditContextExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void NotifyFieldsChanged(Microsoft.AspNetCore.Components.Forms.EditContext editContext, params string[] fields)
```

#### Parameters

| Name          | Type                                                | Description                                                                                                             |
| ------------- | --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| `editContext` | `Microsoft.AspNetCore.Components.Forms.EditContext` | -                                                                                                                       |
| `fields`      | `string[]`                                          | An inline list of fields that were changed in the process, typically specified using "nameof(YourObject.YourProperty"). |
