Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Writes data to the NetworkStream.
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Syntax
'Declaration
Public Overrides Sub Write ( _
buffer As Byte(), _
offset As Integer, _
count As Integer _
)
public override void Write(
byte[] buffer,
int offset,
int count
)
public:
virtual void Write(
array<unsigned char>^ buffer,
int offset,
int count
) override
abstract Write :
buffer:byte[] *
offset:int *
count:int -> unit
override Write :
buffer:byte[] *
offset:int *
count:int -> unit
public override function Write(
buffer : byte[],
offset : int,
count : int
)
Parameters
- buffer
Type: array<System. . :: . .Byte> [] () [] []
An array of type Byte that contains the data to write to the NetworkStream.
- offset
Type: System. . :: . .Int32
The ___location in buffer from which to start writing data.
- count
Type: System. . :: . .Int32
The number of bytes to write to the NetworkStream.
Remarks
The Write method starts at the specified offset and sends count bytes from the contents of buffer to the network. The Write method blocks until the requested number of bytes is sent or a SocketException is thrown. If you receive a SocketException, use the SocketException..::..ErrorCode property to obtain the specific error code, and refer to the Windows Sockets version 2 API error code documentation in MSDN for a detailed description of the error.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.