Partager via


Recipient.Type Property

Returns or sets an Integer (int in C#) value representing the type of recipient. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property Type As Integer
    Get
    Set
'Usage
Dim instance As Recipient
Dim value As Integer

value = instance.Type

instance.Type = value
[DispIdAttribute()]
int Type { get; set; }

Property Value

Type: System.Int32

Remarks

Depending on the type of recipient, this property returns or sets an Integer (int in C#) value corresponding to the numeric equivalent of one of the following constants:

This property may not always return the appropriate recipient type for a conference room. For instance, a conference room may be specified as a required recipient in a meeting request, in which case this property will not return olResource for that conference room.

To reliably determine if a recipient is a conference room, use the Messaging API (MAPI) property, PidTagDisplayTypeEx, of the Recipient object. You can access this property using the PropertyAccessor object in the Outlook object model. The PidTagDisplayTypeEx property is represented as "https://schemas.microsoft.com/mapi/proptag/0x39050003" in the MAPI proptag namespace. Note that the PidTagDisplayTypeEx property is not available in versions of Microsoft Exchange Server earlier than Microsoft Exchange Server 2007; in such earlier versions of Exchange Server, you can use the Recipient.Type property and assume that a recipient having a type other than olResource is not a conference room.

See Also

Reference

Recipient Interface

Recipient Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Specify Different Recipient Types for an Appointment Item

How to: Specify Different Recipient Types for a Mail Item

How to: Create a Meeting Request, Add Recipients, and Specify a Location

How to: Use the Select Names Dialog Box to Obtain and Assign Recipients to an Appointment