_NameSpace.CreateRecipient(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.