Compartilhar via


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)
Available in Sandboxed Solutions: No

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