XdmWriterSettings.AllowDuplicateNames PropertyXdmWriterSettings.AllowDuplicateNames PropertyXdmWriterSettings::AllowDuplicateNames Property

Gets or sets a value indicating whether a map item serialized as a JSON object using the JSON output method is allowed to contain duplicate member names.

Syntax

Public Property AllowDuplicateNames As Boolean
        Get
        Set(ByVal value As Boolean)
public bool AllowDuplicateNames { get; set; }
public:
property bool AllowDuplicateNames {
    bool get();
    void set(bool value);
}
 

Property Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the duplicates are allowed; otherwise falseFalsefalse.

Remarks

This property corresponds to the allow-duplicate-names serialization parameter.

If this property has the value trueTruetrue, then a map item serialized as a JSON object using the JSON output method is allowed to contain duplicate member names. If the value no falseFalsefalse is specified, serialization error [err:SERE0022] will be raised.

This property is ignored when MethodMethodMethod is set to any value other than JsonOutputMethodJsonOutputMethodJsonOutputMethod.

By default this property is set to falseFalsefalse