ModelStateDictionary.Merge(ModelStateDictionary) Method

Definition

Copies the values from the specified model-state dictionary object into this dictionary, overwriting existing values if the keys are the same.

C#
public void Merge(System.Web.ModelBinding.ModelStateDictionary dictionary);

Parameters

dictionary
ModelStateDictionary

The model-state dictionary to be merged into this one.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1