Udostępnij za pośrednictwem


ValidationEntry Konstruktory

Definicja

Przeciążenia

ValidationEntry(ModelMetadata, String, Func<Object>)

Tworzy nowy adres ValidationEntry.

ValidationEntry(ModelMetadata, String, Object)

Tworzy nowy adres ValidationEntry.

ValidationEntry(ModelMetadata, String, Func<Object>)

Źródło:
ValidationEntry.cs
Źródło:
ValidationEntry.cs
Źródło:
ValidationEntry.cs

Tworzy nowy adres 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))

Parametry

metadata
ModelMetadata

Klasa ModelMetadata skojarzona z klasą Model.

key
String

Prefiks modelu skojarzony z elementem Model.

modelAccessor
Func<Object>

Delegat, który zwróci element Model.

Dotyczy

ValidationEntry(ModelMetadata, String, Object)

Źródło:
ValidationEntry.cs
Źródło:
ValidationEntry.cs
Źródło:
ValidationEntry.cs

Tworzy nowy adres 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)

Parametry

metadata
ModelMetadata

Skojarzony ModelMetadata z elementem model.

key
String

Prefiks modelu skojarzony z elementem model.

model
Object

Obiekt modelu.

Dotyczy