Partager via


MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotations Méthode

Définition

Inscrit les annotations de données MVC.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddDataAnnotations (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddDataAnnotations : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddDataAnnotations (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcBuilderopérateur

Retours

L’IMvcBuilderopérateur

S’applique à