SPClientRequestServiceSettings.MaxReceivedMessageSize property

Gets or sets the maximum received message size in bytes for the WCF service of the client object model (client.svc).

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property MaxReceivedMessageSize As Integer
    Get
    Set
'Usage
Dim instance As SPClientRequestServiceSettings
Dim value As Integer

value = instance.MaxReceivedMessageSize

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

Property value

Type: System.Int32
The maximum size in bytes. When greater than zero, this property value trumps the MaxReceivedMessageSize property setting of SPWcfServiceSettings and is used to configure the maximum message size. If the value equals zero, SharePoint Foundation uses the default value of 64KB. If the value equals -1, SharePoint Foundation uses the SPWcfServiceSettings value, if defined, to specify the maximum message size. If not defined, SharePoint Foundation uses the default value of 64KB.

See also

Reference

SPClientRequestServiceSettings class

SPClientRequestServiceSettings members

Microsoft.SharePoint.Administration namespace

Other resources

Increasing the Maximum Message Size