ValidationEntry 构造函数

定义

重载

ValidationEntry(ModelMetadata, String, Func<Object>)

创建一个新的 ValidationEntry

ValidationEntry(ModelMetadata, String, Object)

创建一个新的 ValidationEntry

ValidationEntry(ModelMetadata, String, Func<Object>)

Source:
ValidationEntry.cs
Source:
ValidationEntry.cs
Source:
ValidationEntry.cs

创建一个新的 ValidationEntry

public:
 ValidationEntry(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::String ^ key, Func<System::Object ^> ^ modelAccessor);
public ValidationEntry (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, Func<object> modelAccessor);
public ValidationEntry (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, Func<object?> modelAccessor);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * string * Func<obj> -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry
Public Sub New (metadata As ModelMetadata, key As String, modelAccessor As Func(Of Object))

参数

metadata
ModelMetadata

ModelMetadata 关联的 Model

key
String

Model关联的模型前缀。

modelAccessor
Func<Object>

将返回 的 Model委托。

适用于

ValidationEntry(ModelMetadata, String, Object)

Source:
ValidationEntry.cs
Source:
ValidationEntry.cs
Source:
ValidationEntry.cs

创建一个新的 ValidationEntry

public:
 ValidationEntry(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::String ^ key, System::Object ^ model);
public ValidationEntry (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model);
public ValidationEntry (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object? model);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * string * obj -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry
Public Sub New (metadata As ModelMetadata, key As String, model As Object)

参数

metadata
ModelMetadata

ModelMetadata 关联的 model

key
String

与 关联的 model模型前缀。

model
Object

对象模型。

适用于