語言

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 錯誤。 接收端會丟棄訊息,並在追蹤日誌中建立事件的條目。

適用於