The IUploadCmd interface is used to initialize the data contained in the Upload command component, which silently uploads a specific version of an object store item from a specified file on the local machine. Using this interface, the client application indicates which item to upload and may also identify a specific content element. When the object store item is currently checked-out, the client may also use the Upload command to save changes to the reservation object for that item.
After the Upload command has been executed by calling IAppIntCmd::Invoke, an Upload response component is returned. The response component contains specific Upload command data that is accessible through the IUploadRsp interface.
coclass UploadCmd {
[default] interface IUploadCmd;
interface IAppIntCmd;
};
DLL | FnAppIntUploadCmd.dll |
See Also | IUploadRsp Interface |
The IUploadCmd interface defines the following methods:
Method | Description |
---|---|
InitializeObjectStoreItem |
Initializes the Upload command by specifying the object store item to upload from a file on the local machine. |
The following is a fragment from the complete example for the Upload command.
...
// Instantiate the custom Upload command component
IUploadCmdPtr spIUploadCmd;
hResult = spIUploadCmd.CreateInstance(__uuidof(UploadCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the Upload command component.\n";
_ASSERTE(0);
}
...