Office.EmailUser interface
Représente un compte de messagerie sur un serveur Exchange.
EmailUser
Les objets sont principalement reçus dans les entités MeetingSuggestion et TaskSuggestion extraites d’un élément Outlook. Pour en savoir plus sur ce scénario, reportez-vous à Extraire des chaînes d’entité à partir d’un élément Outlook.
Remarques
Niveau d’autorisation minimal : élément de lecture
Mode Outlook applicable : Lecture
Exemples
// The following example is an excerpt from a larger sample.
// For the full sample, visit https://learn.microsoft.com/office/dev/add-ins/outlook/extract-entity-strings-from-an-item.
// Gets instances of the task suggestion entity on the item.
function myGetTaskSuggestions()
{
let htmlText = "";
// Gets an array of TaskSuggestion objects, each array element
// containing an instance of a task suggestion entity from
// the current item.
const tasksArray = _MyEntities.taskSuggestions;
// Iterates through each instance of a task suggestion.
for (let i = 0; i < tasksArray.length; i++)
{
// Gets the string that was identified as a task suggestion.
htmlText += "TaskString : <span>" +
tasksArray[i].taskString + "</span><br/>";
// Gets an array of assignees for that instance of a task
// suggestion. Each assignee is represented by an
// EmailUser object.
let assigneesArray = tasksArray[i].assignees;
for (let j = 0; j < assigneesArray.length; j++)
{
htmlText += "Assignee : ( ";
// Gets the displayName property of the assignee.
htmlText += "displayName = <span>" + assigneesArray[j].displayName +
"</span> , ";
// Gets the emailAddress property of each assignee.
// This is the SMTP address of the assignee.
htmlText += "emailAddress = <span>" + assigneesArray[j].emailAddress +
"</span>";
htmlText += " )<br/>";
}
htmlText += "<hr/>";
}
document.getElementById("entities_box").innerHTML = htmlText;
}
Propriétés
display |
Obtient le nom d’affichage associé à une adresse de messagerie. |
email |
Obtient l’adresse de messagerie SMTP. |
Détails de la propriété
displayName
Obtient le nom d’affichage associé à une adresse de messagerie.
displayName: string;
Valeur de propriété
string
emailAddress
Obtient l’adresse de messagerie SMTP.
emailAddress: string;
Valeur de propriété
string
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : tout au long de 2024, nous allons éliminer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d'informations, consultez :Envoyer et afficher des commentaires pour