DotMSN |

# P2PTransferSession.StartDataTransfer Method

Starts a seperate thread to send the data in the stream to the remote client. It will first wait for a direct connection if tryDirectConnection is set to true.

[Visual Basic]
Public Sub StartDataTransfer( _
ByVal tryDirectConnection As Boolean _
)
[C#]
public void StartDataTransfer(
bool tryDirectConnection
);

#### Remarks

This method will not open or close the specified datastream.

#### See Also

P2PTransferSession Class | XihSolutions.DotMSN.DataTransfer Namespace