Share via


SPWcfServiceSettings.MaxReceivedMessageSize property

Gets or sets the maximum size for messages of the WCF service.

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

Syntax

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

value = instance.MaxReceivedMessageSize

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

Property value

Type: System.Int32
The maximum size of the buffer, in bytes. This property is applied only when it is set to a value that is greater than zero, and when the MaxReceivedMessageSize property of SPClientRequestServiceSettings equals -1. If the SPClientRequestServiceSettings setting is greater than zero, SharePoint Foundation uses it to define the maximum message size. SharePoint Foundation uses the default value of 64KB if the SPClientRequestServiceSettings value equals zero, or if it equals -1 and this SPWcfServiceSettings property is undefined.

See also

Reference

SPWcfServiceSettings class

SPWcfServiceSettings members

Microsoft.SharePoint.Administration namespace

Other resources

Increasing the Maximum Message Size