DataWriter.DetachStream DataWriter.DetachStream DataWriter.DetachStream DataWriter.DetachStream DataWriter.DetachStream Method

Definition

Detaches the stream that is associated with the data writer.

public : IOutputStream DetachStream()
IOutputStream DetachStream() const;
public IOutputStream DetachStream()
Public Function DetachStream() As IOutputStream
var iOutputStream = dataWriter.detachStream();

Returns

Remarks

If a write operation is in progress when an application attempts to detach the stream, the call will fail with the error HRESULT_FROM_WIN32(ERROR_INVALID_OPERATION).