Share via


EmailRecipient constructor

The EmailRecipient method initializes a new instance of the EmailRecipient class by using the specified values for the display name and the Simple Mail Transfer Protocol (SMTP) address of the recipient.

Namespace:  Microsoft.Exchange.Data.Transport.Email
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public Sub New ( _
    displayName As String, _
    smtpAddress As String _
)
'Usage
Dim displayName As String
Dim smtpAddress As String

Dim instance As New EmailRecipient(displayName, _
    smtpAddress)
public EmailRecipient(
    string displayName,
    string smtpAddress
)

Parameters

  • displayName
    Type: System.String

    The name to use as the friendly display name for the recipient.

  • smtpAddress
    Type: System.String

    The SMTP address for the recipient.

See also

Reference

EmailRecipient class

EmailRecipient members

Microsoft.Exchange.Data.Transport.Email namespace