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

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