共用方式為


ValidationVisitor.StateManager(ValidationVisitor, Object) 建構函式

定義

初始化新的 ValidationVisitor.StateManager

public:
 StateManager(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationVisitor ^ visitor, System::Object ^ newModel);
public StateManager (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor visitor, object newModel);
public StateManager (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor visitor, object? newModel);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor.StateManager : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor * obj -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationVisitor.StateManager
Public Sub New (visitor As ValidationVisitor, newModel As Object)

參數

visitor
ValidationVisitor

造訪者。

newModel
Object

要驗證的模型。

適用於