JsonObject.SetAt Méthode

Définition

Surcharges

SetAt(Int32, String, JsonNode)

Définit une nouvelle propriété à l’index spécifié.

SetAt(Int32, JsonNode)

Définit une nouvelle valeur de propriété à l’index spécifié.

SetAt(Int32, String, JsonNode)

Définit une nouvelle propriété à l’index spécifié.

public:
 void SetAt(int index, System::String ^ propertyName, System::Text::Json::Nodes::JsonNode ^ value);
public void SetAt (int index, string propertyName, System.Text.Json.Nodes.JsonNode? value);
member this.SetAt : int * string * System.Text.Json.Nodes.JsonNode -> unit
Public Sub SetAt (index As Integer, propertyName As String, value As JsonNode)

Paramètres

index
Int32

Index de base zéro de la propriété à définir.

propertyName
String

Nom de propriété à stocker à l’index spécifié.

value
JsonNode

Valeur JSON à stocker à l’index spécifié.

Exceptions

index est inférieur à 0 ou supérieur ou égal à Count.

propertyName est déjà spécifié dans un autre index.

value a déjà un parent.

S’applique à

SetAt(Int32, JsonNode)

Définit une nouvelle valeur de propriété à l’index spécifié.

public:
 void SetAt(int index, System::Text::Json::Nodes::JsonNode ^ value);
public void SetAt (int index, System.Text.Json.Nodes.JsonNode? value);
member this.SetAt : int * System.Text.Json.Nodes.JsonNode -> unit
Public Sub SetAt (index As Integer, value As JsonNode)

Paramètres

index
Int32

Index de base zéro de la propriété à définir.

value
JsonNode

Valeur JSON à stocker à l’index spécifié.

Exceptions

index est inférieur à 0 ou supérieur ou égal à Count.

value a déjà un parent.

S’applique à