IFolder::AddItemToInfraredFolder
This method is not supported in Windows CE Platform Builder 3.0.
This method adds an item to the list of items to be sent by infrared. You can use the method to add any type of item to the infrared folder and any combination of types. Use the SendToInfrared to send the items in the folder over an infrared link.
HRESULT AddItemToInfraredFolder( int olItem, IDispatch * polItem );
Parameters
- olItem
[in] The type of item to add. This parameter can be one of the following: olAppointmentItem, olContactItem, olTaskItem, or olCityItem. - polItem
[out] Pointer to the item added to this folder.
Return Values
S_OK indicates success. If an error occurs, the appropriate HRESULT value is returned.
Remarks
You can add any type or combination of items to the infrared folder. After you have added all the items to be sent, call the SendToInfrared method to send the items.
Code Example [Visual Basic]
The following Visual Basic® code snippet shows how to add a city to the infrared folder:
Sub AddCityToIrFolder(polApp As PocketOutlook.Application, polCity As PocketOutlook.CityItem)
Dim polFolderIR as PocketOutlook.Folder
Set polFolderIR = polApp.GetDefaultFolder(olFolderInfrared)
polFolderIR.AddItemToInfraredFolder olFolderCity, polCity
End Sub
Code Example [C++]
The following C++ code snippet shows how to add a city to the infrared folder:
void AddCityToIrFolder(IPOutlookApp polApp, ICity *pCity)
{
IFolder *pFolderIR;
polApp->GetDefaultFolder(olFolderInfrared, & pFolderIR);
pFolderIR->AddItemToInfraredFolder(olFolderCity, &pCity);
// Release objects
pfolderIR->Release();
}
Requirements
| Runs On | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 2.0 and later | pimstore.h |
See Also
IFolder::Unknown, IFolder Property Methods
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.