SystemTextJsonValidationMetadataProvider Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SystemTextJsonValidationMetadataProvider() |
Creates a new SystemTextJsonValidationMetadataProvider with the default CamelCase |
SystemTextJsonValidationMetadataProvider(JsonNamingPolicy) |
Creates a new SystemTextJsonValidationMetadataProvider with an optional JsonNamingPolicy |
Creates a new SystemTextJsonValidationMetadataProvider with the default CamelCase
public SystemTextJsonValidationMetadataProvider ();
Public Sub New ()
Applies to
ASP.NET Core 9.0 dan versi lain
Produk | Versi |
---|---|
ASP.NET Core | 7.0, 8.0, 9.0 |
Creates a new SystemTextJsonValidationMetadataProvider with an optional JsonNamingPolicy
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)
Parameters
- namingPolicy
- JsonNamingPolicy
The JsonNamingPolicy to be used to configure the metadata provider.
Applies to
ASP.NET Core 9.0 dan versi lain
Produk | Versi |
---|---|
ASP.NET Core | 7.0, 8.0, 9.0 |