FormValueMappingContext.MapErrorToContainer 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將一組錯誤對應至包含實例的具象。
public Action<string,object>? MapErrorToContainer { get; set; }
member this.MapErrorToContainer : Action<string, obj> with get, set
Public Property MapErrorToContainer As Action(Of String, Object)
屬性值
備註
例如,將類別中指定屬性的錯誤對應至類別實例。 這是必要專案,如此一來,驗證就可以運作,而不需要完整的識別碼。