共用方式為


ValidationEntry 建構函式

定義

多載

ValidationEntry(ModelMetadata, String, Func<Object>)

建立新的 ValidationEntry

ValidationEntry(ModelMetadata, String, Object)

建立新的 ValidationEntry

ValidationEntry(ModelMetadata, String, Func<Object>)

來源:
ValidationEntry.cs
來源:
ValidationEntry.cs
來源:
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)

來源:
ValidationEntry.cs
來源:
ValidationEntry.cs
來源:
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

模型物件。

適用於