DataReader.DetachStream Method

Definition

Detaches the stream that is associated with the data reader.

public:
 virtual IInputStream ^ DetachStream() = DetachStream;
IInputStream DetachStream();
public IInputStream DetachStream();
function detachStream()
Public Function DetachStream () As IInputStream

Returns

IInputStream

The detached stream.

Implements

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).

Applies to