ClientWebSocketOptions.SetBuffer 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定用戶端緩衝區參數。
多載
SetBuffer(Int32, Int32) |
設定用戶端緩衝區參數。 |
SetBuffer(Int32, Int32, ArraySegment<Byte>) |
設定用戶端緩衝區參數。 |
SetBuffer(Int32, Int32)
設定用戶端緩衝區參數。
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>)
設定用戶端緩衝區參數。
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>
要使用的接收緩衝區。
- 屬性