共用方式為


MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotations 方法

定義

註冊 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

參數

傳回

IMvcBuilder

適用於