JsonPropertyInfo.AssociatedParameter Property

Definition

Gets the constructor parameter associated with the current property.

public:
 property System::Text::Json::Serialization::Metadata::JsonParameterInfo ^ AssociatedParameter { System::Text::Json::Serialization::Metadata::JsonParameterInfo ^ get(); };
public System.Text.Json.Serialization.Metadata.JsonParameterInfo? AssociatedParameter { get; }
member this.AssociatedParameter : System.Text.Json.Serialization.Metadata.JsonParameterInfo
Public ReadOnly Property AssociatedParameter As JsonParameterInfo

Property Value

Remarks

Returns the JsonParameterInfo metadata for the parameter in the deserialization constructor that has been associated with the current property.

A constructor parameter is matched to a property or field if they are of the same type and have the same (case-insensitive) name. Each constructor parameter must be matched to exactly one property or field.

Applies to