FormsService.ViewStateThreshold Property
Gets or sets the maximum size of the session state when stored in the form view.
Namespace: Microsoft.Office.InfoPath.Server.Administration
Assembly: Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)
Syntax
'Declaration
Public Property ViewStateThreshold As Integer
Get
Set
'Usage
Dim instance As FormsService
Dim value As Integer
value = instance.ViewStateThreshold
instance.ViewStateThreshold = value
public int ViewStateThreshold { get; set; }
Property Value
Type: System.Int32
Remarks
The default size of the ViewStateThreshold is 40 kilobytes. This property corresponds to the Form view (reduces database load on server). If form session state is larger than the specified value, the Session State Service will be used instead setting on the InfoPath Forms Services Configuration page of the Central Administration site.