public final class MapiItemType
extends Enum
Represents a MAPI item type that can be explicitly converted into an object
of the corresponding class derived from the IMapiMessageItem interface.
| Modifier and Type | Field and Description |
|---|---|
static int |
Calendar
A calendar item.
|
static int |
Contact
A contact item.
|
static int |
DistList
A distribution list.
|
static int |
Journal
A Journal entry.
|
static int |
Message
An email message.
|
static int |
None
Non-supported type.
|
static int |
Note
A StickyNote.
|
static int |
Task
A Task item.
|
public static final int None
Non-supported type. MapiMessage cannot be converted to an appropriate item type.
public static final int Message
An email message. This type does not need to be converted.
public static final int Contact
A contact item. Can be converted to MapiContact.
if (mapiMessage.SupportedType == MapiItemType.Contact)
{
var contact = (MapiContact)mapiMessage.ToMapiMessageItem();
}
public static final int Calendar
A calendar item. Can be converted to MapiCalendar.
if (mapiMessage.SupportedType == MapiItemType.Calendar)
{
var calendar = (MapiCalendar)mapiMessage.ToMapiMessageItem();
}
public static final int DistList
A distribution list. Can be converted to MapiDistributionList.
if (mapiMessage.SupportedType == MapiItemType.DistList)
{
var distList = (MapiDistributionList)mapiMessage.ToMapiMessageItem();
}
public static final int Journal
A Journal entry. Can be converted to MapiJournal.
if (mapiMessage.SupportedType == MapiItemType.Journal)
{
var journal = (MapiJournal)mapiMessage.ToMapiMessageItem();
}
public static final int Note
A StickyNote. Can be converted to MapiNote.
if (mapiMessage.SupportedType == MapiItemType.Note)
{
var note = (MapiNote)mapiMessage.ToMapiMessageItem();
}
public static final int Task
A Task item. Can be converted to MapiTask.
if (mapiMessage.SupportedType == MapiItemType.Task)
{
var task = (MapiTask)mapiMessage.ToMapiMessageItem();
}
Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.