AddressEntry.GetExchangeUser Method

Returns an ExchangeUser object that represents the AddressEntry if the AddressEntry belongs to an Exchange AddressList object such as the Global Address List (GAL) and corresponds to an Exchange user.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetExchangeUser As ExchangeUser
'Usage
Dim instance As AddressEntry
Dim returnValue As ExchangeUser

returnValue = instance.GetExchangeUser()
[DispIdAttribute()]
ExchangeUser GetExchangeUser()

Return Value

Type: Microsoft.Office.Interop.Outlook.ExchangeUser
An ExchangeUser object that represents the AddressEntry. Returns Nothing (a null reference (Nothing in Visual Basic) in C#) if the AddressEntry object does not correspond to an Exchange user.

Remarks

You have to be connected to the Exchange server to use this method.

See Also

Reference

AddressEntry Interface

AddressEntry Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get Information About Multiple Accounts

How to: Enumerate the Entries in the Global Address List

How to: Display a Shared Calendar of a Recipient

How to: Get Information About the Current User

How to: Get Information About All Distribution Lists of Which the Current User is a Member

How to: Get Information About the Current User's Manager

How to: Get Availability Information for an Exchange User's Manager

How to: Check a Manager's Response to a Meeting Request

How to: Create a Mail Item, Attach a Report, and Send the Mail Item to the User's Manager

How to: Get the SMTP Address of the Sender of a Mail Item

How to: Execute a Rule Instantly

How to: Flag Mail Items from a Manager for Follow-Up

How to: Search and Obtain Items in an Aggregated View