ValidationEntry 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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。
适用于
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
对象模型。