Recipient.Type 属性

定义

返回或设置一个 整数 (int ,) 表示收件人类型的值。 读/写。

public:
 property int Type { int get(); void set(int value); };
public int Type { get; set; }
Public Property Type As Integer

属性值

注解

根据收件人的类型,此属性返回或设置一个 整数 (int 的 C# ) 值,该值对应于下列常量之一的等效数值:

此属性可能不会始终返回会议室的相应收件人类型。 例如,会议室可能指定为会议要求中的必选收件人,在此情况下,此属性不会返回该会议室的 olResource 。

若要可靠地确定收件人是否是会议室,请使用对象的消息传送 API (MAPI) 属性 PidTagDisplayTypeEx Recipient 。 可以使用 Outlook 对象模型中的 对象访问此属性 PropertyAccessorPidTagDisplayTypeEx 属性由 MAPI 属性标记命名空间中的"http://schemas.microsoft.com/mapi/proptag/0x39050003"。 请注意, PidTagDisplayTypeEx 属性在中不可用的 Microsoft Exchange Server 版本早于 Microsoft Exchange Server 2007 年;在 Exchange Server 这种早期版本中,可以使用 Recipient.Type 属性,并假定有一个 olResource 不同类型的收件人不是会议室。

适用于