共用方式為


SPWcfServiceSettings.MaxReceivedMessageSize property

取得或設定的 WCF 服務的郵件大小上限。

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

Syntax

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

value = instance.MaxReceivedMessageSize

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

Property value

Type: System.Int32
緩衝區的大小上限,以位元組為單位。及SPClientRequestServiceSettingsMaxReceivedMessageSize屬性等於-1 設定為大於零的值時,只會套用此屬性。如果SPClientRequestServiceSettings設定為大於零, SharePoint Foundation會使用它來定義郵件大小上限。如果SPClientRequestServiceSettings值等於零,或者它等於-1 和此SPWcfServiceSettings屬性未定義, SharePoint Foundation會使用預設值為 64 KB。

請參閱

參照

SPWcfServiceSettings class

SPWcfServiceSettings members

Microsoft.SharePoint.Administration namespace

其他資源

Increasing the Maximum Message Size