Share via


ICommandStream

ICommandStream, while similar to ICommandText, passes a command as a stream object rather than as a string. ICommandStream is not a mandatory interface.

When to Implement

ICommandStream should be implemented to facilitate commands as streams. Unlike ICommandText, which expects the command to be in Unicode format, ICommandStream can accept any provider-specific encoding.

Method

Description

GetCommandStream

Returns the command stream object set by the last call to ICommandStream::SetCommandStream.

SetCommandStream

Sets the command stream object, replacing the existing stream object.

This topic is a part of: