C-DEngine 5.105

WebSocket..::..SendAsync Method (FileInfo, Action<(Of <(<'Boolean>)>)>)

Sends the specified file as binary data asynchronously using the WebSocket connection.

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void SendAsync(
	FileInfo file,
	Action<bool> completed
)
Public Sub SendAsync ( _
	file As FileInfo, _
	completed As Action(Of Boolean) _
)
public:
void SendAsync(
	FileInfo^ file, 
	Action<bool^>^ completed
)

Parameters

file
Type: FileInfo
A FileInfo that represents the file to send.
completed
Type: Action<(Of <(<'Boolean>)>)>
An Action<bool> delegate that references the method(s) called when the send is complete. A Boolean passed to this delegate is true if the send is complete successfully.

Remarks


This method doesn't wait for the send to be complete.