UdpAnySourceMulticastClient.SendBufferSize 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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。
发送缓冲区的大小(以字节为单位)。
- 属性
例外
指定的缓冲区大小小于 0。
尚未联接多播组。
注解
属性获取或设置用于对此实例执行多播发送操作的基础 Socket 的发送缓冲区的大小( SendBufferSize 以字节 UdpAnySourceMulticastClient 为单位)。
如果发送缓冲区已满,则调用 或 方法需要更长时间来调用回调,具体取决于 BeginSendToGroup BeginSendTo SendBufferSize 属性的值。 属性仅控制用户的缓冲区在发送完成之前是否一直锁定在 SendBufferSize 物理内存中。
上发送缓冲区的默认大小为 8,192 Windows 8,192 字节。