Bahasa

JsonDocumentOptions.AllowDuplicateProperties Properti

Definisi

Menentukan apakah nama properti duplikat diizinkan saat mendeserialisasi objek JSON.

public:
 property bool AllowDuplicateProperties { bool get(); void set(bool value); };
public bool AllowDuplicateProperties { get; set; }
member this.AllowDuplicateProperties : bool with get, set
Public Property AllowDuplicateProperties As Boolean

Nilai Properti

Keterangan

Secara default, diatur ke true. Jika diatur ke false, JsonException dilemparkan ketika nama properti duplikat ditemui selama deserialisasi.

Berlaku untuk