Läs på engelska Redigera

Dela via


JsonKnownNamingPolicy Enum

Definition

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.

The JsonNamingPolicy to be used at run time.

C#
public enum JsonKnownNamingPolicy
Inheritance
JsonKnownNamingPolicy

Fields

Name Value Description
Unspecified 0

Specifies that JSON property names should not be converted.

CamelCase 1

Specifies that the built-in CamelCase be used to convert JSON property names.

SnakeCaseLower 2

Specifies that the built-in SnakeCaseLower policy be used to convert JSON property names.

SnakeCaseUpper 3

Specifies that the built-in SnakeCaseUpper policy be used to convert JSON property names.

KebabCaseLower 4

Specifies that the built-in KebabCaseLower be used to convert JSON property names.

KebabCaseUpper 5

Specifies that the built-in KebabCaseUpper policy be used to convert JSON property names.

Applies to

Produkt Versioner
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)