共用方式為


FormValueMappingContext.MapErrorToContainer 屬性

定義

將一組錯誤對應至包含實例的具象。

public Action<string,object>? MapErrorToContainer { get; set; }
member this.MapErrorToContainer : Action<string, obj> with get, set
Public Property MapErrorToContainer As Action(Of String, Object)

屬性值

備註

例如,將類別中指定屬性的錯誤對應至類別實例。 這是必要專案,如此一來,驗證就可以運作,而不需要完整的識別碼。

適用於