JsonNode.Item[] Propriété

Définition

Surcharges

Item[Int32]

Obtient ou définit l'élément au niveau de l'index spécifié.

Item[String]

Obtient ou définit l’élément avec le nom de la propriété spécifiée. Si la propriété est introuvable, null elle est retournée.

Item[Int32]

Obtient ou définit l'élément au niveau de l'index spécifié.

public:
 property System::Text::Json::Nodes::JsonNode ^ default[int] { System::Text::Json::Nodes::JsonNode ^ get(int index); void set(int index, System::Text::Json::Nodes::JsonNode ^ value); };
public System.Text.Json.Nodes.JsonNode? this[int index] { get; set; }
member this.Item(int) : System.Text.Json.Nodes.JsonNode with get, set
Default Public Property Item(index As Integer) As JsonNode

Paramètres

index
Int32

Index de base zéro de l'élément à obtenir ou à définir.

Valeur de propriété

JsonNode

Exceptions

index est inférieur à 0 ou index supérieur au nombre de propriétés.

Le courant JsonNode n’est pas un JsonArray.

S’applique à

Item[String]

Obtient ou définit l’élément avec le nom de la propriété spécifiée. Si la propriété est introuvable, null elle est retournée.

public:
 property System::Text::Json::Nodes::JsonNode ^ default[System::String ^] { System::Text::Json::Nodes::JsonNode ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Text::Json::Nodes::JsonNode ^ value); };
public System.Text.Json.Nodes.JsonNode? this[string propertyName] { get; set; }
member this.Item(string) : System.Text.Json.Nodes.JsonNode with get, set
Default Public Property Item(propertyName As String) As JsonNode

Paramètres

propertyName
String

Nom de la propriété à retourner.

Valeur de propriété

JsonNode

Exceptions

propertyName a la valeur null.

Le courant JsonNode n’est pas un JsonObject.

S’applique à