共用方式為


SystemTextJsonValidationMetadataProvider 建構函式

定義

多載

SystemTextJsonValidationMetadataProvider()

使用預設值建立新的 SystemTextJsonValidationMetadataProviderCamelCase

SystemTextJsonValidationMetadataProvider(JsonNamingPolicy)

使用選擇性建立新的 SystemTextJsonValidationMetadataProviderJsonNamingPolicy

SystemTextJsonValidationMetadataProvider()

來源:
SystemTextJsonValidationMetadataProvider.cs
public SystemTextJsonValidationMetadataProvider ();
Public Sub New ()

適用於

SystemTextJsonValidationMetadataProvider(JsonNamingPolicy)

來源:
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要用來設定中繼資料提供者的 。

適用於