ClientWebSocketOptions.SetBuffer Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets client buffer parameters.
SetBuffer(Int32, Int32) |
Sets the client buffer parameters. |
SetBuffer(Int32, Int32, ArraySegment<Byte>) |
Sets client buffer parameters. |
- Source:
- ClientWebSocketOptions.cs
- Source:
- ClientWebSocketOptions.cs
- Source:
- ClientWebSocketOptions.cs
Sets the client buffer parameters.
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)
Parameters
- receiveBufferSize
- Int32
The size, in bytes, of the client receive buffer.
- sendBufferSize
- Int32
The size, in bytes, of the client send buffer.
- Attributes
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
- Source:
- ClientWebSocketOptions.cs
- Source:
- ClientWebSocketOptions.cs
- Source:
- ClientWebSocketOptions.cs
Sets client buffer parameters.
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))
Parameters
- receiveBufferSize
- Int32
The size, in bytes, of the client receive buffer.
- sendBufferSize
- Int32
The size, in bytes, of the client send buffer.
- buffer
- ArraySegment<Byte>
The receive buffer to use.
- Attributes
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: