IGetPreferencesCmd Interface

The IGetPreferencesCmd interface is used to initialize the data contained in the GetPreferences command component, which silently retrieves the site, user, or bootstrap preferences from the Workplace Application Server.

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

COM Class ID

coclass GetPreferencesCmd {
[default] interface IGetPreferencesCmd;
interface IAppIntCmd;
};

Reference

DLL FnAppIntGetPreferencesCmd.dll
See Also IGetPreferencesRsp Interface

Methods

The IGetPreferencesCmd interface defines one method:

Method Description
Initialize

Initializes the GetPreferences command by specifying the type of preferences to retrieve from the Workplace Application Server.

Example

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

   ...
   // Instantiate the custom GetPreferences command component
   IGetPreferencesCmdPtr spIGetPreferencesCmd;
hResult = spIGetPreferencesCmd.CreateInstance(__uuidof(GetPreferencesCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the GetPreferences command component.\n"; _ASSERTE(0);
} ...