共用方式為


ScriptingJsonSerializationSection.MaxJsonLength 屬性

定義

取得或設定物件可接受 JavaScriptSerializer 的最大長度,適用於 JavaScript 物件符號(JSON)字串。

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 屬性的值僅適用於非同步通訊層用來呼叫網路服務方法的內部 JavaScriptSerializer 實例。

適用於

另請參閱