共用方式為


BasicHttpBindingElement.MaxReceivedMessageSize 屬性

定義

取得或設定可接收的訊息大小上限 (以位元組為單位)。

public:
 property long MaxReceivedMessageSize { long get(); void set(long value); };
[System.Configuration.ConfigurationProperty("maxReceivedMessageSize", DefaultValue=65536)]
[System.Configuration.LongValidator(MinValue=1)]
public long MaxReceivedMessageSize { get; set; }
[<System.Configuration.ConfigurationProperty("maxReceivedMessageSize", DefaultValue=65536)>]
[<System.Configuration.LongValidator(MinValue=1)>]
member this.MaxReceivedMessageSize : int64 with get, set
Public Property MaxReceivedMessageSize As Long

屬性值

可以由繫結接收之訊息的大小上限 (以位元組為單位)。 預設值為 65,536 位元組。

屬性

備註

這個限制會定義訊息大小上限 (以位元組為單位),包括標頭。 對收件者而言太大的訊息,其寄件者會收到 SOAP 錯誤。 收件者會捨棄訊息,然後在追蹤記錄檔中建立此事件的項目。

適用於