DataReader.DetachStream Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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).