Share via


_ExchangeUser.PrimarySmtpAddress Property

Returns a String (string in C#) representing the primary Simple Mail Transfer Protocol (SMTP) address for the ExchangeUser. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property PrimarySmtpAddress As String
    Get
'Usage
Dim instance As _ExchangeUser
Dim value As String

value = instance.PrimarySmtpAddress
[DispIdAttribute()]
string PrimarySmtpAddress { get; }

Property Value

Type: System.String

Remarks

This property corresponds to the MAPI property, PidTagEmailAddress.

Returns an empty string if this property has not been implemented or does not exist for the ExchangeUser object.

See Also

Reference

_ExchangeUser Interface

_ExchangeUser Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get Information About the Current User

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

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