共用方式為


ClientWebSocketOptions.SetBuffer 方法

定義

設定用戶端緩衝區參數。

多載

SetBuffer(Int32, Int32)

設定用戶端緩衝區參數。

SetBuffer(Int32, Int32, ArraySegment<Byte>)

設定用戶端緩衝區參數。

SetBuffer(Int32, Int32)

來源:
ClientWebSocketOptions.cs
來源:
ClientWebSocketOptions.cs
來源:
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>)

來源:
ClientWebSocketOptions.cs
來源:
ClientWebSocketOptions.cs
來源:
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>

要使用的接收緩衝區。

屬性

適用於