共用方式為


ModelStateDictionary.Merge(ModelStateDictionary) 方法

定義

將指定的模型狀態字典中的值複製到這個 ModelStateDictionary 實例,在索引鍵相同時覆寫現有的值。

public void Merge (System.Web.WebPages.Html.ModelStateDictionary dictionary);
member this.Merge : System.Web.WebPages.Html.ModelStateDictionary -> unit
Public Sub Merge (dictionary As ModelStateDictionary)

參數

dictionary
ModelStateDictionary

要從中複製值的模型狀態字典。

適用於