共用方式為


SPClientRequestServiceSettings.MaxReceivedMessageSize property

取得或設定已接收的郵件大小上限 (位元組) 的用戶端物件模型 (client.svc) WCF 服務。

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

Syntax

'宣告
Public Property MaxReceivedMessageSize As Integer
    Get
    Set
'用途
Dim instance As SPClientRequestServiceSettings
Dim value As Integer

value = instance.MaxReceivedMessageSize

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

Property value

Type: System.Int32
以位元組為單位大小上限。當大於零時,這個屬性值 trumps SPWcfServiceSettingsMaxReceivedMessageSize屬性設定,並可用來設定郵件大小上限。如果值等於零, SharePoint Foundation會使用預設值為 64 KB。如果值等於-1, SharePoint Foundation使用SPWcfServiceSettings值,定義,以指定的郵件大小上限。如果未定義, SharePoint Foundation會使用預設值為 64 KB。

請參閱

參照

SPClientRequestServiceSettings class

SPClientRequestServiceSettings members

Microsoft.SharePoint.Administration namespace

其他資源

Increasing the Maximum Message Size