-api-id | -api-type |
---|---|
T:Windows.Storage.Streams.DataWriter |
winrt class |
Writes data to an output stream.
Instances of DataWriter objects do not support concurrent writes. If an application concurrently writes or detaches a stream from a DataWriter instance that is being written to the call to the object will fail with the error HRESULT_FROM_WIN32(ERROR_INVALID_OPERATION).
See the code example in the DataReader topic.
Serializing and deserializing data sample (Windows 10), File access sample (Windows 10), DatagramSocket sample (Windows 10), StreamSocket sample (Windows 10), Custom USB device sample (Windows 10), DataReader, DataWriterStoreOperation