UdpAnySourceMulticastClient.SendBufferSize 屬性

定義

警告

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

取得或設定 Socket 的傳送緩衝區大小 (以位元組為單位),用於這個 UdpAnySourceMulticastClient 執行個體上多點傳送的傳送作業。

public:
 property int SendBufferSize { int get(); void set(int value); };
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public int SendBufferSize { get; set; }
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
member this.SendBufferSize : int with get, set
Public Property SendBufferSize As Integer

屬性值

Int32

傳回 Int32

傳送緩衝區大小,以位元組為單位。

屬性

例外狀況

指定的緩衝區大小小於 0。

尚未聯結多點傳送群組。

備註

SendBufferSize屬性會取得或設定用於這個實例上多播傳送作業之基礎通訊端的傳送緩衝區大小(以位元組為單位) UdpAnySourceMulticastClient

BeginSendToGroup BeginSendTo SendBufferSize 如果傳送緩衝區已滿,呼叫或方法會花較長的時間來呼叫回呼,視屬性的值而定。 此 SendBufferSize 屬性只會控制使用者的緩衝區是否在實體記憶體中保持鎖定,直到傳送完成為止。

Windows 的傳送緩衝區預設大小為8192個位元組。

適用於