ExplicitIndexCollectionValidationStrategy Class

An implementation of Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IValidationStrategy for a collection bound using ‘explict indexing’ style keys.

Namespace
Microsoft.AspNetCore.Mvc.Internal
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class ExplicitIndexCollectionValidationStrategy : IValidationStrategy
class Microsoft.AspNetCore.Mvc.Internal.ExplicitIndexCollectionValidationStrategy

Constructors

ExplicitIndexCollectionValidationStrategy(System.Collections.Generic.IEnumerable<System.String>)

Creates a new Microsoft.AspNetCore.Mvc.Internal.ExplicitIndexCollectionValidationStrategy.

Arguments:elementKeys (System.Collections.Generic.IEnumerable<System.String>) – The keys of collection elements that were used during model binding.
public ExplicitIndexCollectionValidationStrategy(IEnumerable<string> elementKeys)

Properties

Microsoft.AspNetCore.Mvc.Internal.ExplicitIndexCollectionValidationStrategy.ElementKeys

Gets the keys of collection elements that were used during model binding.

Return type:System.Collections.Generic.IEnumerable<System.String>
public IEnumerable<string> ElementKeys { get; }

Methods

GetChildren(Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, System.String, System.Object)
Return type:System.Collections.Generic.IEnumerator<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry>
public IEnumerator<ValidationEntry> GetChildren(ModelMetadata metadata, string key, object model)