共用方式為


ScriptingJsonSerializationSection.MaxJsonLength 屬性

定義

取得或設定用於 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

屬性值

Int32

代表 JSON 字串長度上限的整數。 預設值為 102400 個字元。

屬性

備註

屬性的值 MaxJsonLength 只適用于非同步通訊層用來叫用 Web 服務方法的內部 JavaScriptSerializer 實例。

適用於

另請參閱