DynamicJsonObject.TrySetIndex(SetIndexBinder, Object[], Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit la valeur d’un DynamicJsonObject champ à l’aide de l’index spécifié.
public override bool TrySetIndex(System.Dynamic.SetIndexBinder binder, object[] indexes, object value);
override this.TrySetIndex : System.Dynamic.SetIndexBinder * obj[] * obj -> bool
Public Overrides Function TrySetIndex (binder As SetIndexBinder, indexes As Object(), value As Object) As Boolean
Paramètres
- binder
- SetIndexBinder
Fournit des informations sur l'opération set indexée.
- indexes
- Object[]
Tableau qui contient un objet unique qui indexe le champ par nom. L'objet doit être convertible en chaîne qui spécifie le nom du champ JSON à retourner. Si plusieurs index sont spécifiés, aucun champ n'est modifié, ni ajouté.
- value
- Object
Valeur sur laquelle définir le champ.
Retours
true dans tous les cas.