ClientWebSocketOptions.SetBuffer 方法

定义

设置客户端缓冲区参数。

重载

SetBuffer(Int32, Int32)

设置客户端缓冲区参数。

SetBuffer(Int32, Int32, ArraySegment<Byte>)

设置客户端缓冲区参数。

SetBuffer(Int32, Int32)

Source:
ClientWebSocketOptions.cs
Source:
ClientWebSocketOptions.cs
Source:
ClientWebSocketOptions.cs

设置客户端缓冲区参数。

public:
 void SetBuffer(int receiveBufferSize, int sendBufferSize);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void SetBuffer (int receiveBufferSize, int sendBufferSize);
public void SetBuffer (int receiveBufferSize, int sendBufferSize);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.SetBuffer : int * int -> unit
member this.SetBuffer : int * int -> unit
Public Sub SetBuffer (receiveBufferSize As Integer, sendBufferSize As Integer)

参数

receiveBufferSize
Int32

客户端接收缓冲区的大小(以字节为单位)。

sendBufferSize
Int32

客户端发送缓冲区的大小(以字节为单位)。

属性

适用于

SetBuffer(Int32, Int32, ArraySegment<Byte>)

Source:
ClientWebSocketOptions.cs
Source:
ClientWebSocketOptions.cs
Source:
ClientWebSocketOptions.cs

设置客户端缓冲区参数。

public:
 void SetBuffer(int receiveBufferSize, int sendBufferSize, ArraySegment<System::Byte> buffer);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void SetBuffer (int receiveBufferSize, int sendBufferSize, ArraySegment<byte> buffer);
public void SetBuffer (int receiveBufferSize, int sendBufferSize, ArraySegment<byte> buffer);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.SetBuffer : int * int * ArraySegment<byte> -> unit
member this.SetBuffer : int * int * ArraySegment<byte> -> unit
Public Sub SetBuffer (receiveBufferSize As Integer, sendBufferSize As Integer, buffer As ArraySegment(Of Byte))

参数

receiveBufferSize
Int32

客户端接收缓冲区的大小(以字节为单位)。

sendBufferSize
Int32

客户端发送缓冲区的大小(以字节为单位)。

buffer
ArraySegment<Byte>

要使用接收缓冲区。

属性

适用于