Share via


FormsService.MaxSizeOfFormSessionState Property

Gets or sets the value of the maximum size of session state an instance of a browser-enabled form template can use.

Namespace:  Microsoft.Office.InfoPath.Server.Administration
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)

Syntax

'Declaration
Public Property MaxSizeOfFormSessionState As Integer
    Get
    Set
'Usage
Dim instance As FormsService
Dim value As Integer

value = instance.MaxSizeOfFormSessionState

instance.MaxSizeOfFormSessionState = value
public int MaxSizeOfFormSessionState { get; set; }

Property Value

Type: System.Int32

Remarks

The default size of the MaxSizeOfFormSessionState is 4096 kilobytes (4 MB). This property corresponds to the Size of form session state setting on the Thresholds section of the InfoPath Forms Services Configuration page of the Central Administration site.

Note

Increasing the value of this property could adversely affect server performance and increase the chance of Denial Of Service (DOS) attacks on the server.

See Also

Reference

FormsService Class

FormsService Members

Microsoft.Office.InfoPath.Server.Administration Namespace