共用方式為


ModelStateDictionary.Merge(ModelStateDictionary) 方法

定義

將指定的 dictionary 值複製到這個實例中,如果索引鍵相同,就會覆寫現有的值。

public:
 void Merge(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ dictionary);
public void Merge (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary);
member this.Merge : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> unit
Public Sub Merge (dictionary As ModelStateDictionary)

參數

dictionary
ModelStateDictionary

ModelStateDictionary 從中複製值的 。

適用於