Socket.BeginSendFile Method


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Sends a file asynchronously to a connected Socket object.

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

System_CAPS_pubmethodBeginSendFile(String, AsyncCallback, Object)

Sends the file fileName to a connected Socket object using the UseDefaultWorkerThread flag.

System_CAPS_pubmethodBeginSendFile(String, Byte[], Byte[], TransmitFileOptions, AsyncCallback, Object)

Sends a file and buffers of data asynchronously to a connected Socket object.

Return to top