ITransportCmd Interface

The ITransportCmd interface is used to initialize the data contained in the Transport command component, which performs one of these functions: adds a document, checks in a document, or saves content. Using this interface, the client application indicates which function to perform, and passes the necessary parameters.

After the Transport command has been executed by calling IAppIntCmd::Invoke, a Transport response component is returned. The response component contains specific Transport command data that is accessible through the ITransportRsp interface.

COM Class ID

coclass TransportCmd {
[default] interface ITransportCmd;
interface IAppIntCmd;
};

Reference

DLL FnAppIntTransportCmd.dll
See Also ITransportRsp Interface

Methods

The ITransportCmd interface defines one method:

Method Description
Initialize Initializes the Transport command, by specifying the transport function to perform and passing any necessary input parameters required for the function.

Example

The following is a fragment from the complete example for the Transport command.

   ...
   // Instantiate the custom Transport command component
   ITransportCmdPtr spITransportCmd;
hResult = spITransportCmd.CreateInstance(__uuidof(TransportCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the Transport command component.\n"; _ASSERTE(0);
} ...