ValidationEntry Constructors

Definition

Overloads

ValidationEntry(ModelMetadata, String, Func<Object>)

Creates a new ValidationEntry.

ValidationEntry(ModelMetadata, String, Object)

Creates a new ValidationEntry.

ValidationEntry(ModelMetadata, String, Func<Object>)

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

Creates a new 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))

Parameters

metadata
ModelMetadata

The ModelMetadata associated with the Model.

key
String

The model prefix associated with the Model.

modelAccessor
Func<Object>

A delegate that will return the Model.

Applies to

ValidationEntry(ModelMetadata, String, Object)

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

Creates a new 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)

Parameters

metadata
ModelMetadata

The ModelMetadata associated with model.

key
String

The model prefix associated with model.

model
Object

The model object.

Applies to