ScriptingJsonSerializationSection.MaxJsonLength 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定物件可接受 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 實例。