共用方式為


MsmqBindingElementBase.MaxReceivedMessageSize 屬性

定義

取得或設定值,指出允許的訊息大小上限 (以位元組為單位)。

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

屬性值

使用這個繫結傳送或接收的訊息的允許大小上限。

屬性

備註

如果傳入訊息大於 MaxReceivedMessageSize,便會捨棄訊息。

適用於