DataReader.DetachStream DataReader.DetachStream DataReader.DetachStream DataReader.DetachStream DataReader.DetachStream Method

Definition

Detaches the stream that is associated with the data reader.

public : IInputStream DetachStream()
IInputStream DetachStream() const;
public IInputStream DetachStream()
Public Function DetachStream() As IInputStream
var iInputStream = dataReader.detachStream();
Returns

The detached stream.

Remarks

If a read 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).