DotMSN |

# P2PTransferSession.DataStream Property

The stream to read from when data is send, or to write to when data is received. Default is a MemorySteam.

[Visual Basic]
Public Property DataStream As Stream
[C#]
public System.IO.Stream DataStream {get; set;}

#### Remarks

In the eventhandler, when an invitation is received, the client programmer must set this property in order to enable the transfer to succeed. In the case of the filetransfer, when the local client is the receiver, the incoming data is written to the specified datastream. In the case of the invitation for a msn object (display picture, emoticons, background), when the local client is the sender, the outgoing data is read from the specified datastream.

#### See Also

P2PTransferSession Class | XihSolutions.DotMSN.DataTransfer Namespace