ScriptingJsonSerializationSection.MaxJsonLength 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定用於 JavaScript 物件標記法 (JSON) 字串之 JavaScriptSerializer 物件可接受的長度上限。
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
屬性值
代表 JSON 字串長度上限的整數。 預設值為 102400 個字元。
- 屬性
備註
屬性的值 MaxJsonLength 只適用于非同步通訊層用來叫用 Web 服務方法的內部 JavaScriptSerializer 實例。