Socket::SendFile Method

 

Sends a file and optional data synchronously to a connected Socket.

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

NameDescription
System_CAPS_pubmethodSendFile(String^)

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

System_CAPS_pubmethodSendFile(String^, array<Byte>^, array<Byte>^, TransmitFileOptions)

Sends the file fileName and buffers of data to a connected Socket object using the specified TransmitFileOptions value.

Return to top
Show: