Edit

Share via


_NameSpace.CreateRecipient(String) Method

Definition

Creates a Recipient object.

public:
 Microsoft::Office::Interop::Outlook::Recipient ^ CreateRecipient(System::String ^ RecipientName);
public Microsoft.Office.Interop.Outlook.Recipient CreateRecipient (string RecipientName);
Public Function CreateRecipient (RecipientName As String) As Recipient

Parameters

RecipientName
String

The name of the recipient; it can be a string representing the display name, the alias, or the full SMTP e-mail address of the recipient.

Returns

A Recipient object that represents the new recipient.

Remarks

This method is most commonly used to create a Recipient object for use with the GetSharedDefaultFolder(Recipient, OlDefaultFolders) method, for example, to open a delegator's folder. It can also be used to verify a given name against an address book.

Applies to