Hi,
I have to create calendar from MapiCalendar Object. So i have to set ConversationIndex to MapiCalendar Object. Please provide me some sample code.
Please give a try to the following sample code for setting the ConversationIndex.
private static void testEmail5()
{
MapiProperty property = new MapiProperty(MapiPropertyTag.PR_CONVERSATION_INDEX, intToByteArray(123));
MapiCalendar cal = new MapiCalendar();
cal.setProperty(property);
}
public static final byte[] intToByteArray(int value) {
return new byte[] {
(byte)(value >>> 24),
(byte)(value >>> 16),
(byte)(value >>> 8),
(byte)value};
}