SystemTextJsonValidationMetadataProvider 构造函数

定义

重载

SystemTextJsonValidationMetadataProvider()

使用默认值创建新的SystemTextJsonValidationMetadataProviderCamelCase

SystemTextJsonValidationMetadataProvider(JsonNamingPolicy)

创建包含可选值的新SystemTextJsonValidationMetadataProviderJsonNamingPolicy

SystemTextJsonValidationMetadataProvider()

Source:
SystemTextJsonValidationMetadataProvider.cs
public SystemTextJsonValidationMetadataProvider ();
Public Sub New ()

适用于

SystemTextJsonValidationMetadataProvider(JsonNamingPolicy)

Source:
SystemTextJsonValidationMetadataProvider.cs
public SystemTextJsonValidationMetadataProvider (System.Text.Json.JsonNamingPolicy namingPolicy);
new Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.SystemTextJsonValidationMetadataProvider : System.Text.Json.JsonNamingPolicy -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.SystemTextJsonValidationMetadataProvider
Public Sub New (namingPolicy As JsonNamingPolicy)

参数

namingPolicy
JsonNamingPolicy

JsonNamingPolicy要用于配置元数据提供程序的 。

适用于