ScriptingJsonSerializationSection.MaxJsonLength Propriété
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.
Obtient ou définit la longueur maximale acceptée par l’objet JavaScriptSerializer pour les chaînes JSON (JavaScript Object Notation).
public:
property int MaxJsonLength { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxJsonLength", DefaultValue=102400)]
public int MaxJsonLength { get; set; }
[<System.Configuration.ConfigurationProperty("maxJsonLength", DefaultValue=102400)>]
member this.MaxJsonLength : int with get, set
Public Property MaxJsonLength As Integer
Valeur de propriété
Entier qui représente la longueur maximale des chaînes JSON. La valeur par défaut est de 102400 caractères.
- Attributs
Remarques
La valeur de la MaxJsonLength propriété s’applique uniquement à l’instance interne JavaScriptSerializer utilisée par la couche de communication asynchrone pour appeler des méthodes de services Web.